computergeek67
|
Hit TestTo make a Hit test, you first need to make two objects, make them both Movie Clips and call them object1 and object2. Now on object1, paste this code:
| Code: |
onClipEvent(enterFrame){
if(this.hitTest(_root.object2)){
_root.gotoAndStop(2);
}
} |
Now press Ctrl+Enter and test your flash. When object1 hits object2, it should go to frame 2.
|