Doing it! - Action Script


Tools | Timeline | Library | Panels (5) | Panels & Properties (MX) | Graphics
Motion Tween | Shape Tween | Symbols | Mask | Attach to Path | Buttons | Action Script

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!

Beginning with just some of the Basic actions is a good start.

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 script appears and will happen when the movie arrives at frame 60.

Now when you preview the movie, the kid will stop at the daisy patch.

Did you notice the little on the panel above. If you click and drag this to the right, there will be two columns.

The view doesn't matter. Use what you like.

Scripting buttons

The 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

Click on the button you want to script and click on Object Actions.

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 Basic Action was GetUrl. at the bottom, fill in the url.

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.)

 

Action Script MX

  • From Window on the menubar, choose ACTIONS
  • Open “movie controll”
  • Drag “STOP” to the action space on the lower right hand side of the ACTIONS window.

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.


Tools | Timeline | Library | Panels (5) | Panels & Properties (MX) | Graphics
Motion Tween | Shape Tween | Symbols | Mask | Attach to Path | Buttons | Action Script

Janet Barnstable
updated January 1, 2003

 


powered by FreeFind

Please contact us if you need additional information.
Gail Crantz: D97 Public Information gcrantz@op97.org 708-524-3000
Janet Barnstable: Web Producer jbarnstable@op97.org 708-524-7837 
Care is taken to link to educationally sound material; however, District 97 is not responsible for content beyond its site. 
District 97 Copyright Information and Email Disclaimer, Crisis Planning & School Closing