Beginners in Flash sometimes find it difficult to organize the Timeline well. Look at the example below (click all three buttons) and then examine the Timeline below that.
You need to upgrade your Flash player (v.9 or later) to view this tutorial.
In Flash -- as in Photoshop, Illustrator, etc. -- building with layers is part of the normal workflow. There is no need to be stingy with layers. In fact, the more layers, the better! Layers help you keep all the parts of your movie organized.
The layer stack order affects what is in front of (or on top of) what -- so here the "foreground plants" are in front of "fishy," and "fishy" is in front of the buttons.
Note that there are THREE TWEEN LAYERS in this Timeline: "fishy," "crab," and "starfish." These moving objects MUST BE on separate layers. The bright blue spans in the Timeline are the motion tweens.
Note that a stop(); action must precede a frame label. That is, if a frame label is on frame 15, then the stop(); action for the previous sequence must be on frame 14. Otherwise, you will have to click twice to make a gotoAndPlay(); work. (That would be a bad result.)
Finally, note that all nine layers have been extended to the same length. Although this is not necessary for any technical reason, it is a good professional practice. As your Flash movies become more complex, keeping your Timeline layers tidy and easy to "read" at a glance becomes more important for your workflow and efficiency.
Above is the Library for this movie. There are three Graphic symbols (as you would expect) and one Button symbol (Pushie).
If you do not need to manipulate a symbol with ActionScript, then it can be a Graphic symbol and not a Movie Clip symbol. Some people make everything a Movie Clip symbol, and there's probably nothing wrong with that.
DOWNLOAD There is no download for this example.
Education use: This package was created as an example for my journalism students. It is not intended to be used commercially.
Use and re-use:
How to Use Flash CS4 Timeline Workflow by Mindy McAdams is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License.
Updated 14 March 2010