|
All movie clips have an independent timeline. Every timeline
is either playing or stopped. If a timeline is playing,
it will continue to play (and loop) until it reaches a stop()
command. The one exception is a timeline that only contains
one frame. A lot of design-centric Macromedia Flash content
will involve the timelines in motion. However, a lot of
developers will just use frames for states, and the timeline
for each movie clip will almost always be stopped. Macromedia
Flash can even create a lot of interactive motion on the
screen purely through scripting.
States on the main timeline
Adding keyframes
When you open a new movie, you are looking at the main timeline,
which automatically has one keyframe (on frame 1). The circle
in the bottom of the frame signifies that it is a keyframe.
If the circle is solid it indicates that the keyframe contains
visual content, such as a shape, a movie clip, or a button.
If you have a movie that has visual content and ActionScript
combined, then it's a good idea to add a layer specifically
to hold actions. You can actually put actions in any keyframe,
but it becomes confusing if you have 20 layers and you have
ActionScript scattered throughout. Add a new layer by choosing
Insert > Layer from the main menu. Double-click on the
layer label and type in "Actions" or "Script" or something
that is meaningful to you. Lock the layer by clicking on
the dot under the lock icon to prevent visual content from
accidentally being placed on this layer.
To add new keyframes, select the frame on the layer that
you want to be a keyframe and either choose Insert >
Keyframe, or hit the F6 key. You can add multiple keyframes
by repeatedly hitting the F6 key.
|