|
| Action Script 5 below - Action Script MX here The Actions panel (Window - pull down to Actions) is what makes Flash really more than just an animation program!
The Action Script book that comes with the program is very good and not too hard to understand. The first basic action you will likely want to create is a "stop" of the animation that is playing. For this, use the Attach to Path file that you created, or any .fla document in which you wish to put a "stop". Most important is to first create a new layer for the Action. Yes, take the time to label it "stop script". Next. at the end of the movie, click in the last frame of the stop script layer. (In the "attach" movie that is frame 60.) Now here is the important step! In that last frame Add a Keyframe. Then go to Window and pull down to Actions to pull up the Frame Actions panel (or double click in the frame and it will come up.) Click the +, slide down to Basic Actions and over to Stop, and let go. This Now when you preview the movie, the kid will stop at the daisy patch. Did you notice the little
Scripting buttonsThe other panel in Frame Actions is the Movie Explorer. It has all the frames, scenes, graphics, text, etc. that you've used in your movie. Create a layer, insert the keyframe, and make the buttons. Then go to the movie explorer
In this instance the choice was to play again. To have Flash write the script, click the +, pull down
to Basic Actions, choose GoTo and fill in information
at the bottom. Here is the script for the site button The http:// is only necessary if the url is absolute (going to another site) in this case it was relative (in the same folder as this site.)
Using Action Script in MX is more graphic, making it somewhat easier for the beginner. The more you learn about it, the more you can move beyond simple 'drag and drop' of the 'canned' actions and into creating your own scripts. If you have programming experience - try what you know should work. Just a word of caution, when you have something working save a copy and experiment on that. Keep your original. |
Janet Barnstable
updated
January 1, 2003