MACROMEDIA FLASH MX 2004-GETTING STARTED WITH FLASH Getting Started page 57

Hide thumbs Also See for FLASH MX 2004-GETTING STARTED WITH FLASH:
Table of Contents

Advertisement

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.
Click the Selection tool in the Tools panel.
1.
From the Components panel, drag the Button component onto the Stage, as shown below.
2.
On the Stage, select the button that you just added and configure it using the Parameters tab of
3.
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.
On the Stage, click the Button component that you added.
1.
If the Behaviors panel is not already open, select Window > Development Panels > Behaviors
2.
to open it.
Click the Add (+) button at the top of the panel to display a list of behaviors.
3.
Select Web > Go to Web Page.
4.
The Go to URL dialog box appears.
In the URL text box, type any complete URL, such as http://www.macromedia.com. Then
5.
click OK.
When the user clicks the button, a browser will open for the specified URL.
Save your file.
6.
Add navigation controls
57

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents