Macromedia studio 8-exploring studio 8 User Manual
228 Tutorial: Building Your First Flash Application
16.
Select frame 60 of Layer 2.
17.
In the Actions panel, type the stop(); ActionScript.
18.
In the Timeline, select frame 80 of Layer 2.
19.
In the Actions panel, type the stop(); ActionScript.
Add labels to frames
Now you will add labels to specific frames. By labeling a frame, you make it
possible to refer to that frame in ActionScript. This allows you to write
ActionScript code that performs actions on those frames. Later, you
will add ActionScript code that makes the playhead jump to these
labeled frames.
possible to refer to that frame in ActionScript. This allows you to write
ActionScript code that performs actions on those frames. Later, you
will add ActionScript code that makes the playhead jump to these
labeled frames.
To add the frame labels:
1.
In the Timeline, select Frame 2 of Layer 2.
2.
In the Property inspector, enter slide0 in the Frame Label text box.
A small flag icon and the frame label appear in Frame 2 of Layer 2 in
the Timeline.
the Timeline.
3.
In the Timeline, select Frame 21 of Layer 2.
4.
In the Property inspector, enter slide1 in the Frame Label text box.
5.
In the Timeline, select Frame 41 of Layer 2.
6.
In the Property inspector, enter slide2 in the Frame Label text box.
7.
In the Timeline, select Frame 61 of Layer 2.
8.
In the Property inspector, enter slide3 in the Frame Label text box.
The Timeline with the completed frame labels
000_ExploringStudio.book Page 228 Tuesday, August 30, 2005 9:30 AM