/ Published in: ActionScript 3
Test to see if two objects are touching...
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// just replace the objects myFirstObject.hitTestObject(myOtherObject); //returns true or false
URL: http://www.madvertices.com/2008/10/simple-papervision-hittest-detection.html