Adding Navigation To Your Flash Portfolio - 2

Adding Navigation To Your Flash Portfolio - 2
Step 4. Add behaviors to the navigation buttons. We are ready to add the forward and back behaviors to the navigation arrows. But first we need to convert each instance of the arrow to a symbol. Click on Frame 1 in the Background layer and then click off the Stage to deselect. Now, right click on the right arrow image and choose Convert To Symbol from the drop-down menu. Set the following values in the Convert To Symbol dialog box.

Name: Next_Arrow
Behavior: Button
Registration: Centered

The Property Inspector should change to reflect the new Button symbol. Set the <Instance Name> to Next.

Type the following code in the Actions Panel.

on (release) { nextFrame(); }

Step 5. Back button. Repeat the previous step for the left arrow. This time in the Convert To Symbol dialog box name the symbol Previous_Arrow. In the Property Inspector set the <Instance Name> to Previous. Add the following code to the Actions Panel.

on (release) { prevFrame (); }

Step 6. Test your movie. Click on Frame 1 to move the Playhead back to the beginning. Now press the Ctrl and Enter key on your keyboard to preview your Portfolio movie.

Step 7. Save your movie. You can now save the changes to your Porfolio.fla file.

Macromedia Flash MX 2004 Workspace

Copyright 2018 Adobe Systems Incorporated. All rights reserved. Adobe product screen shot(s) reprinted with permission from Adobe Systems Incorporated. Adobe, Photoshop, Photoshop Album, Photoshop Elements, Illustrator, InDesign, GoLive, Acrobat, Cue, Premiere Pro, Premiere Elements, Bridge, After Effects, InCopy, Dreamweaver, Flash, ActionScript, Fireworks, Contribute, Captivate, Flash Catalyst and Flash Paper is/are either [a] registered trademark[s] or a trademark[s] of Adobe Systems Incorporated in the United States and/or other countries.


Related Articles
Editor's Picks Articles
Top Ten Articles
Previous Features
Site Map

Content copyright © 2022 by Diane Cipollo. All rights reserved.
This content was written by Diane Cipollo. If you wish to use this content in any manner, you need written permission. Contact Diane Cipollo for details.