Search Tutorials
Preparing Spider ObjectDraw the spider object (a common drawing, not API). Convert it to movie clip by clicking Insert> Convert to Symbol or pressing F8. Add actionscript to the movie clip:
onClipEvent (enterFrame) {
Mouse.hide();
startDrag("", true, 120, 120, 280, 280);
}
This actionscript is telling the mouse (when moved inside the stage) to be hidden and start drag the movie clip (spider) instead, inside the constrain defined area.
The closing thoughtYour timeline is simple, it will look like this: I really hope this tutorial will help you learning one of the new features in MX . If you have any questions, don't hesitate to share with me. Keep on Flashing...
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||
|