Add Navigation To A Button; Test The Swf File - MACROMEDIA FLASH MX 2004-LEARNING FLASH Manual

Learning flash
Table of Contents

Advertisement

On the Stage, move the pointer over the button and click the button.
8.
Select Control > Enable Simple Buttons to deselect that feature.
9.

Add navigation to a button

With behaviors, you can quickly add navigation to a button without having to know
ActionScript. You'll add navigation to open a web page when the user clicks a button.
On the Stage, select the instance of Button 1.
1.
In the Behaviors panel (Window > Development Panels > Behaviors), click the Add Behavior
2.
button and select Web > Go to Web Page.
In the Go to URL dialog box, select _blank in the Open In pop-up menu to open the URL in
3.
a new browser window. In the URL text box, either accept the default setting of http://
www.macromedia.com or enter a different URL. Then click OK.
If desired, repeat the steps above, selecting Button 2, then Button 3, to add navigation to those
4.
buttons as well.
Click the options menu control in the upper right of the Behavior panel, and select Close Panel
5.
to close the panel.

Test the SWF file

You'll test your document to view the button animation and see if the navigation works
as expected.
Save your document and select Control > Test Movie.
1.
Roll the mouse pointer over the instance of Button 1 to view the color animation that
2.
you created.
Click the button to see if your web browser opens to the URL that you specified.
3.
If you added navigation to the other two buttons, test those buttons as well.
4.
When you finish viewing the SWF file, close the SWF file and web browser windows.
5.
74
Chapter 9: Add Animation and Navigation to Buttons

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-LEARNING FLASH and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents