Macromedia Flash 8 Bible Free Open Book

Macromedia Flash 8 Bible

Previous Page
Next Page

Adding Named Anchors

Flash Player 6 and higher give Flash movies extended functionality in some Web browsers, allowing the Back and Forward buttons of the browser to navigate to areas within the Flash movie. In earlier versions of the Flash Player, the Web browser's Back button would reset the position of the Flash movie to the first frame every time the movie reloaded into the browser. Now, you can add named anchors to Flash movies. Named anchors, when played, alert the browser's history to the location of the current anchor within the Flash movie. When another anchor is played, you can click the browser's Back button to go back to the previous named anchor.

Caution 

Named anchors are only supported in Web browsers that support fscommand and JavaScript interactivity. Currently, Internet Explorer 4 (or higher) on Windows or Netscape 3.x to 4.x on Windows or Macintosh supports the named anchor feature of Flash Player 6 and 7. Netscape 6 (on any platform) or Internet Explorer on Mac (any version) does not support named anchors.

You can add named anchors to Flash movies in two ways:

  • Enable the Named Anchor on Scene option in the Preferences dialog box. On Windows, you can access the preferences by choosing Edit ð Preferences. On Mac OS X, choose Flash ð Preferences. You will find the Named Anchor on Scene option in the General category of the Preferences dialog box.

  • Choose the Anchor option in the Label type menu of the Property inspector. Select a frame in the Timeline window, assign a frame label, and choose the Anchor option in the Property inspector.

In the presentation you're building in this chapter, you do not use any scenes. Therefore, you will add named anchors to all of the frame labels you created in previous sections.

  1. Open the last Flash document you created from the previous section. Select frame 10 of the labels layer, and open the Property inspector. Select the Anchor option in the Label type menu, underneath the Frame Label field.

  2. Repeat Step 1 for frames 20, 30, and 40 of the labels layer.

  3. Open the Publish Settings (File ð Publish Settings). Click the HTML tab, and choose the Flash with Named Anchors option in the Template menu. Click OK to close the Publish Settings dialog box.

  4. Save the Flash document as main_700.fla, and preview the presentation by choosing File ð Publish Preview ð HTML. Flash 8 creates the Flash .swf file and .html file, and opens the default Web browser. If you have a supported Web browser, you can click each navigation button (that is, Introduction, Video Equipment, and so on) and see the browser's history update. After you have clicked in one section, you can visit the previous section by clicking the browser's Back button.

On the CD-ROM 

You can find the main_700.fla document in the ch20 folder of this book's CD-ROM.

Web Resource 

To read more about an advanced method of using the Back button with Flash movies and browsers, peruse the Flash and Browser Interactivity category links at www.flashsupport.com/links.


Previous Page
Next Page
Index: [A][B][C][D][E][F][G][H][I][J][K][L][M][N][O][P][Q][R][S][T][U][V][W][X][Y][Z]


     Main Menu
Table of Contents
Back Cover
Macromedia Flash 8 Bible
Foreword
Preface
Part I: An Introduction to Flash Web Production
Part II: Mastering the Flash Environment
Part III: Creating Animation and Effects
Part IV: Integrating Media Files with Flash
Part V: Adding Basic Interactivity to Flash Movies
Chapter 18: Understanding Actions and Event Handlers
Chapter 19: Building Timelines and Interactions
Chapter 20: Making Your First Flash 8 Project
The Main Timeline as the Site Layout
Adding Navigation Elements to the Main Timeline
Text Scrolling with the TextArea Component
Using the Custom BlurFader Component
Adding Named Anchors
Making the Movie Accessible
Summary
Part VI: Distributing Flash Movies
Part VII: Approaching ActionScript
Part VIII: Applying ActionScript
Part IX: Integrating Components and Data-Binding
Part X: Expanding Flash
Part XI: Appendixes
Index
List of Figures
List of Tables
List of Listings
List of Sidebars


More Books
PHP Hacks
Processing Xml With Java - A Guide To Sax, Dom, Jdom, Jaxp, And Trax
The Koran (Holy Qur'an)
Macromedia Flash 8 Bible
Search Engine Optimization for Dummies
YouTube Traffic
PHP 5 for Dummies
Harry Potter and The Chamber of Secrets
Harry Potter and the Sorcerer's Stone
The Pilgrim's Progress
Wireless Hacks
Flash Hacks. 100 Industrial-Strength Tips & Tools
PayPal Hacks. 100 Industrial-Strength Tips and Tools
Amazon Hacks
Pdf Hacks
The Da Vinci Code
Google Hacks
The Holy Bible
Windows XP For Dummies
Harry Potter and the Half-Blood Prince
Seo Book
Upgrading and Repairing Networks
Macromedia Dreamweaver 8 UNLEASHED
Windows XP Annoyances
Windows XP Hacks
Microsoft Windows XP Power Toolkit
Teach Yourself MS Office In 24Hours
iPod & iTunes Missing Manual
PC Hacks 100 Industrial-Strength Tips and Tools
PC Overclocking, Optimization, and Tuning - 2th Edition
PC Hardware In A Nutshell 3rd Edition
PC Hardware in a Nutshell, 2nd Edition
Upgrading and Repairing PCs
Google for Dummies
MySQL Cookbook
Teach Yourself Macromedia Flash 8 In 24 Hours
PHP CookBook
Sams Teach Yourself JavaScript in 24 Hours
PHP5 Manual
Free Games Paper Airplanes
500 Juegos Gratis 500 Giochi Gratis 500 Jeux Gratuits 500 Jogos Gratis 500 Kostenlose Spiele