Information Technology Reference
In-Depth Information
On the
actions
layer, we will be placing stop actions in the first two frames of
the movie. Each stopped frame will have purpose in the interactivity. By
isolating the actions on a layer, we can quickly reference our frame actions for
editing.
•
Insert a keyframe
in
Frame 1
of the
Actions layer
•
Go to the
Actions Panel
click in the action area and type
stop();
•
Repeat the stop() action for Frame 2
.
Set Up Labels
We will be using
labels
and an
invisible button
in this exercise. Both items are
great for making interactive objects in Flash. A
label
is a reference point in the
Flash timeline. Using labels allows you the freedom of naming points in the
timeline descriptively, thus making references in ActionScript a bit more
intuitive to program. For instance, you can make ActionScript take the play
head to a certain frame in the timeline. Or you can have the play head go to a
label point such as Start or Play. Maybe Stop or Repeat? Labels can be any
name you like; the point is that they provide a higher level of control than frame
numbers when programming an interactive movie. On the labels layer you will
see red flags appear in the timeline at the label points. Don't worry, the flags are
only markers to show where the labels are in the timeline. We will have two
labels:
Play and Stop.
•
On the Labels Layer,
go to
Frame 1
add a keyframe if the frame is
empty(F6). On the
Properties Inspector,
under the word Frame, click
in the field and type
Play.
This label is not seen on the timeline because
the frames are so close together. If you roll over the frame slowly you will
see the hint box appear with the label name. In the future, you can expand
the frames out without changing the animation. Then you would see the
label names in full view.
•
On the Labels Layer,
go to
Frame 2
add a keyframe if the frame is
empty(F6). On the
Properties Inspector,
under the word Frame, click
in the field and type
Stop.
We will use these labels for navigating the interactivity of our audio switch.