Teach Yourself Macromedia Flash 8 In 24 Hours Free Open Book

Teach Yourself Macromedia Flash 8 In 24 Hours

Origami Paper Planes
Paper Airplane Origami Boats. Learn hot to flod this crafts
Previous Section  < Day Day Up >  Next Section

Subtleties of Movie Clips

We've already discussed the biggest difference between Movie Clip symbols and Graphic symbols—a movie clip's Timeline is independent. Obviously, there's more. Movie clips are addressable, in that you can use ActionScript to direct messages to individual instances of a movie clip, such as a Stop command. Also, Movie Clip instances download in a different manner than Graphic instances.

Addressable Movie Clip Instances

Remember that the Properties panel provides a place to name a movie clip instance (see Figure 12.4). What's the point of naming an instance if the symbol already has a name in the Library? It provides a way to give each instance on the Stage a unique name. Only then can you address individual movie clips. Think about how you address a person. You first say his name, and then you tell him what you want. If you want him to stop, you say, "Joe, stop." This is the concept of addressing, which we'll talk about more in Hour 15.

Figure 12.4. The Properties panel, when set to Movie Clip, gives you a way to name a particular instance on the Stage.


Do you recall how the movie clip kept animating even when you stopped the Timeline in the last task? Stopping the Timeline is like yelling "Stop!" into a crowd. Simply saying "stop" isn't enough. You have to say, "Hey, Movie Clip 1, you stop." But you can't talk to an individual instance unless that instance has a name. As you'll soon see, you can do much more than tell movie clips to stop.

By the Way: Instance Names Versus Symbol Names

Don't confuse the master name for a symbol in the Library with the instance name for just one instance on the Stage. Every item in the Library must have a unique name, but symbols in the Library exist just once. You can drag as many instances of a symbol as you need to use throughout a movie. Any instance set to Movie Clip can be given its own instance name, regardless of the properties of the master in the Library. If the instance name is unique (that is, different from any other instances), you can address it directly. People often think that because the master in the Library has a name, the instance does, too. The truth is that an instance has no default name (and you'll see gray text reading "<Instance Name>" in the Properties panel).


Effects on Download Order

All this trash talk about graphics shouldn't scare you off. Besides being totally appropriate for scrubbing, they also have a nice effect on downloads. Specifically, Graphic symbols only need to download one frame at a time—and therefore exhibit a better streaming effect than Movie Clip symbols. That is, a movie that uses Graphic symbols (or even no symbols) can begin to play before it's entirely downloaded. In the case of a frame containing a movie clip, all nested frames need to download before Flash will proceed to the next frame. If Flash reaches a frame that contains a ton of Movie Clip instances which in turn include lots of nested frames, you'll experience a pause. Even though the later frames in nested clips may not be needed right away, Flash needs to be prepared for a script that immediately jumps to the last frame. This isn't a super-critical point because Flash files tend to be very small, and there are other ways to optimize a movie (many of which are discussed in Hour 21). I just thought it would be worth mentioning at this point how Graphic symbols stream better.

    Previous Section  < Day Day Up >  Next Section
    Index: [SYMBOL][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]

    Origami Paper AirPlane
    Paper Airplane Origami Boats

         Main Menu
    Sams Teach Yourself Macromedia Flash 8 in 24 Hours
    Table of Contents
    Copyright
    About the Author
    Acknowledgments
    We Want to Hear from You!
    Reader Services
    Introduction
    Part I: Assembling the Graphics You'll Animate in Flash
    Part II: Animating in Flash
    Hour 6. Understanding Animation
    Hour 7. Animation the Old-Fashioned Way
    Hour 8. Using Motion Tweens to Animate
    Hour 9. Using Shape Tweens to Morph
    Hour 10. Including Sound in Animations
    Hour 11. Using Layers in Animations
    Hour 12. Animating Using Movie Clip and Graphic Symbols
    Movie Clip Symbol Behavior
    Subtleties of Movie Clips
    Summary
    Q&A
    Workshop
    Hour 13. Creating Special Effects
    Part III: Adding Interactivity and Advanced Animation
    Part IV: Putting It All Together for the Webs
    Part V: Appendixes
    Index


    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 Airplane
    Paper Airplane - Paper Airplane - Paper Airplane - Paper Airplane - Paper Airplane - Paper Airplane - Paper Airplane - Paper Airplane -