First make a movieclip on the stage called "car"(instance name).
And give it these actions:
onClipEvent (mouseDown) {
startDrag("", true, 4, 70, 396, 273);
}
onClipEvent (mouseUp) {
stopDrag();
}
Then make a movieclip called "area"(instance name)
and give it these actions
onClipEvent (enterFrame) {
_root.status=this.hitTest(_root.car);
}
Finally make a dynamic text box and type "true" into it, and give it the instance name of "status",also if you're not to sure also put it in the Var box.
Basically that's it!!! Test the movie and see if it works. If it doesn't than go to the tutorials on flash MX and search for collision detection.
Hope I helped!
| » Level Intermediate |
|
Added: 2004-08-31 Rating: 3 Votes: 7 |
| » Author |
| I'm a guy. |
| » Download |
| Download the files used in this tutorial. |
| Download (0 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
There are no comments yet. Be the first to comment!