![MACROMEDIA FLASH 8-FLASH Tutorials Manual Download Page 8](http://html2.mh-extra.com/html/macromedia/flash-8-flash/flash-8-flash_tutorials-manual_3348958008.webp)
8
Contents
Chapter 19: ActionScript: Write Scripts . . . . . . . . . . . . . . . . . . 225
Set up your workspace. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .226
Create an instance of a symbol. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .226
Name button instances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .228
Initialize the document . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .228
Apply ActionScript syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .229
Locate ActionScript reference documentation . . . . . . . . . . . . . . . . . 230
Add comments to ActionScript . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230
Write a function for a button . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231
Copy and modify a button function . . . . . . . . . . . . . . . . . . . . . . . . . . . . .232
Check syntax and test your application . . . . . . . . . . . . . . . . . . . . . . . . .233
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .234
Chapter 20: ActionScript: Add Interactivity . . . . . . . . . . . . . . . 235
Set up your workspace. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .236
Name button instances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .237
Add a scene . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .237
Move between scenes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .238
Control the document with a stop() action . . . . . . . . . . . . . . . . . . . . . . .238
Link a button to a scene . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .239
Add navigation to return to Scene 1. . . . . . . . . . . . . . . . . . . . . . . . . . . . .239
Play a movie clip . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240
Use a behavior to play an MP3 file . . . . . . . . . . . . . . . . . . . . . . . . . . . . .243
Test your document . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .243
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244
Chapter 21: ActionScript: Create a Form with Conditional Logic
and Send Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 245
Set up your workspace. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .246
Add an input text field to collect form data . . . . . . . . . . . . . . . . . . . . . .246
Add a Submit button to the form . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .247
Add an error message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .248
Add a confirmation message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249
Add a stop() action . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249
Add frame labels for navigation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250
Add conditional logic for the Submit button . . . . . . . . . . . . . . . . . . . . . 251
Pass data out of a SWF file. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .252
Write a function for the Try Again button . . . . . . . . . . . . . . . . . . . . . . . .253
Test your SWF file. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .253
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254
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...