Add navigation controls
57
For more information about components, see
Using Components
.
The Flash built-in components are displayed in the Components panel (Window > Development
Panels > Components).
You will add a Button component to create the Information button.
1.
Click the Selection tool in the Tools panel.
2.
From the Components panel, drag the Button component onto the Stage, as shown below.
3.
On the Stage, select the button that you just added and configure it using the Parameters tab of
the Property inspector:
■
In the Instance name text box, type
info
.
■
In the Label text box, type
Information
. As you type, the name of the button on the Stage
changes from Button to Information.
Add a behavior
Next, you’ll add a behavior to the button that will make it open a website. Behaviors enable you
to add the power, control, and flexibility of ActionScript coding to your document without
having to create the ActionScript code yourself. You can use behaviors to control movie clips,
video, and sound files.
You’ll use the Go to Web Page behavior to add navigation to a button that opens a website.
1.
On the Stage, click the Button component that you added.
2.
If the Behaviors panel is not already open, select Window > Development Panels > Behaviors
to open it.
3.
Click the Add (+) button at the top of the panel to display a list of behaviors.
4.
Select Web > Go to Web Page.
The Go to URL dialog box appears.
5.
In the URL text box, type any complete URL, such as
http://www.macromedia.com.
Then
click OK.
When the user clicks the button, a browser will open for the specified URL.
6.
Save your file.
Содержание DIRECTOR MX 2004-GETTING STARTED WITH DIRECTOR
Страница 1: ...Getting Started with Flash...
Страница 14: ...14 Chapter 1 Getting Started...
Страница 68: ...68 Index...