238 ActionScript: Add Interactivity
3.
Use the Property inspector to give the Animation movie clip an instance
name of
animation_mc
.
4.
Rename Layer 1
Animation
.
Create a new layer and name it
Buttons
. Drag an instance of the
BTNback symbol to the Stage, and place it anywhere to the right of the
movie clip.
5.
Use the Property inspector to give the button an instance name of
back_btn
.
Move between scenes
You can move between scenes in the authoring environment by selecting a
scene in the Scene panel.
1.
To open the Scene panel, select Window > Other Panels > Scene.
2.
Select Scene 1.
Control the document with a
stop() action
When you test or publish a Flash document that contains more than one
scene, by default the scenes play linearly, in the order in which they appear
in the Scenes panel. You’ll use a
stop()
action for Scene 1 so that the
playhead in the Timeline stops at Frame 1 of Scene 1.
1.
In the main Timeline for Scene 1, add a new layer and name it
Actions
.
2.
Click Frame 1 of the Actions layer.
In the Script pane of the Actions panel (Window > Actions), type the
following comment followed by the script that stops the playhead on
the frame:
// Stops the playhead at Frame 1.
stop();
Summary of Contents for FLASH 8-FLASH
Page 1: ...Flash Tutorials...
Page 10: ...10 Contents...
Page 12: ...12 Introduction...
Page 42: ...42 Basic Tasks Creating a banner Part 1...
Page 78: ...78 Basic Tasks Creating a banner Part 3...
Page 88: ...88 Basic Tasks Create Accessible Flash Content...
Page 106: ...106 Basic Tasks Create an Application...
Page 116: ...116 Basic Tasks Use Layout Tools...
Page 124: ...124 Basic Tasks Create Symbols and Instances...
Page 134: ...134 Basic Tasks Add Button Animation and Navigation...
Page 144: ...144 Basic Tasks Create a Presentation with Screens Flash Professional Only...
Page 192: ...192 Creating Graphics Applying Gradients...
Page 198: ...198 Creating Graphics Apply Graphic Filters and Blends Flash Professional Only...
Page 224: ...224 ActionScript Use Script Assist mode...
Page 268: ...268 ActionScript Work with Objects and Classes...
Page 270: ...270 Data Integration Overview Flash Professional Only...