scripted animation - post-class notes
beware of the most common pitfall of scripting - THE MISPLACED SCRIPT!!
-when scripting a button to link to another .swf file, the script is attached to the button itself:

-this script was written with the button selected - note the "Actions - Button" at the top of the actions panel.
-also note there is no "a" mark in the frame.
BUT, when creating a function script triggered by a movie clip (in this example by onEnterFrame), the script is created in a frame on the main timeline, i.e., a frame script:
note the "a" in the first frame of the actions layer.

0 Comments:
Post a Comment
<< Home