Macromedia Flash 8 Bible Free Open Book

Macromedia Flash 8 Bible

Previous Page
Next Page

Using the Custom BlurFader Component

So far, much of the material and artwork used in this presentation could have been accomplished with a traditional HTML page layout in Macromedia Dreamweaver with GIF or JPEG graphics. In this section, you will add a fade effect to each of the video items in the videoEquip symbol. We created a custom component that can be applied to any Movie Clip instance on the Stage. This component will fade in or out a Movie Clip instance, based on settings in the Property inspector. To see this fade effect in action, open the main.swf file from the ch20 folder in Flash Player 8. When you go to the Video Equipment section, each item will fade in. In other words, the alpha of the each Movie Clip instance animates from 0 to 100 percent.

New Feature 

In this edition of the Flash Bible , we've fully updated the fade component used in previous editions. This new version is built with ActionScript 2.0 and uses the new blur filter effect available in Flash Player 8.

The BlurFader component snaps to Movie Clip instances. Because we built the component for you, you won't find the BlurFader component in the Component panel along with the Flash 8 components. The BlurFader component is located in the starter document's Library and has been saved in each version of the main_ document that you've created in previous sections. Here's how to add the BlurFader component to the video items in the videoEquip symbol:

  1. Open your saved Flash document from the previous section. On frame 20 of the content layer, double-click the videoEquip instance on the Stage to edit the symbol.

  2. Select frame 1 of the items layer, and open the Library panel. Drag the BlurFader component to the mcTape instance on the Stage. When you release the mouse button, the BlurFader component should snap to the top-left corner of the mcTape instance, as shown in Figure 20-19. We made a custom icon for this BlurFader component: a little gradient box with the text BF. This icon will not show up in the actual Flash .swf file — it is displayed only in the authoring environment.

  3. You can view the default settings for the BlurFader component instance in the Property inspector. Select the component instance at the top-left corner of the mcTape instance, open the Property inspector, and click the Parameters tab. This component has three options, as shown in Figure 20-19: Direction (in to fade in the targeted instance, out to fade out the targeted instance), Duration (how long the transition should last, in seconds), and Target Clip (the Movie Clip instance that the BlurFader component instance has snapped to).

  4. Save the Flash document as main_600.fla, and test it (Ctrl+Enter or z+Enter). When you click the Video Equipment button, the first video item will fade into the Stage.

  5. Repeat Step 2 for the other Movie Clip instances on frames 2, 3, 4, 5, and 6 of the items layer.

  6. Save the Flash document again, and test it. After you click the Video Equipment button, click the Next button. Each video item will fade into the Stage.

Image from book
Figure 20-19: The BlurFader component snaps to the top-left corner of the Movie Clip instance.

If you want to use the BlurFader component in other Flash documents, simply drag the BlurFader component from one Library to another document's Library. Alternatively, you can copy and paste the BlurFader component instance from one document to another. Try different Duration values for the BlurFader component (in the Property inspector) to see how the fade animation is affected in the Flash movie.

Note 

The BlurFader component adds about 2 KB to the file size of your Flash movie file (.swf).

On the CD-ROM 

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


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