Add A Script To A Button By Using Script Assist Mode - MACROMEDIA FLASH 8-FLASH Tutorials Manual

Hide thumbs Also See for FLASH 8-FLASH:
Table of Contents

Advertisement

Open the starter document
Now that you have seen the completed file, it is time to create your own
Flash document. To get started, you'll open a starter file that contains
the elements to which you will add ActionScript code using Script
Assist mode.
To open the starter document:
1.
In Flash, select File > Open.
2.
Navigate to the following directory:
In Windows: Hard Disk\Program Files\Macromedia\Flash
8\Samples and Tutorials\Tutorial Assets\ActionScript\Script Assist
On the Macintosh: Macintosh HD/Applications/Macromedia Flash
8/Samples and Tutorials/Tutorial Assets/ActionScript/Script Assist
3.
Open the scriptassist_start.fla file.
Add a script to a button by using
Script Assist mode
In this section you'll use Script Assist mode to add a script to the Home
button. When the sample application is run and the Home button is
clicked, the Home title appears in the Title movie clip.
This section demonstrates how you add scripts directly to objects.
Although this approach can be convenient for adding interactivity to your
Flash applications, you should follow best coding practices and add code
to the Timeline rather than to individual objects. For more information, see
"Add frame scripts to the Timeline by using Script Assist mode"
on page
218.
1.
Click the Selection tool in the Tools panel.
2.
On the Timeline, select the "menu and button" layer.
If the layer is locked, unlock it.
3.
In the upper-right corner of the Stage, select the Home button.

Add a script to a button by using Script Assist mode 213

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents