Sunday, 27 September 2009

the hit test using a circle and block

circle_mc.onPress = function() { this.startDrag(); }; circle_mc.onRelease = function() { this.stopDrag(); if (this.hitTest(block_mc)) { trace("you hit the block"); }} //have fun !

No comments: