# Flash CS4 Professional in 24 Hours- P1

Chia sẻ: Cong Thanh | Ngày: | Loại File: PDF | Số trang:30

0
56
lượt xem
13

## Flash CS4 Professional in 24 Hours- P1

Mô tả tài liệu

Flash CS4 Professional in 24 Hours- P1: The creation of this book could not have happened without the skill and patience of many, many people at Sams Publishing. Most of all, I want to thank Mark Taber for offering me this opportunity and Philip Kerman for writing such a great book. I also greatly appreciate the efforts of Songlin Qiu for keeping me on track and organized, not an easy task.

Chủ đề:

Bình luận(0)

Lưu

## Nội dung Text: Flash CS4 Professional in 24 Hours- P1

2. Phillip Kerman and Lynn Beighley Sams Teach Yourself Adobe ® ® Flash CS4 Professional 24 in Hours 800 East 96th Street, Indianapolis, Indiana, 46240 USA
4. Contents Introduction 1 Part II: Animating in Flash What’s New in This Edition . . . . . . . . . . . . . . . . . . . . . . . . 2 HOUR 7: Understanding Animation 143 Who Should Read This Book . . . . . . . . . . . . . . . . . . . . . . 3 How Animation Works . . . . . . . . . . . . . . . . . . . . . . . . . . 143 How This Book Is Organized . . . . . . . . . . . . . . . . . . . . . . 3 Elements of Animation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144 What’s on the Book’s Website . . . . . . . . . . . . . . . . . . . . 4 HOUR 8: Using Motion Tweens to Part I: Assembling the Graphics You’ll Animate in Flash Animate 157 Creating a Motion Tween . . . . . . . . . . . . . . . . . . . . . . . . 157 HOUR 1: Basics 7 Fine-Tuning a Motion Tween . . . . . . . . . . . . . . . . . . 165 Jump Right In and Make an Animation . . . . . . 7 Getting Your Bearings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 HOUR 9: Using Shape Tweens to Getting Around in Flash . . . . . . . . . . . . . . . . . . . . . . . . . . 23 Morph 177 Document Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Making a Shape Tween . . . . . . . . . . . . . . . . . . . . . . . . . . 177 File Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 Refining and Fine-Tuning a Shape Tween . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182 HOUR 2: Drawing and Painting Original Art in Flash 35 HOUR 10: Advanced Animation with Drawing on the Stage. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 Inverse Kinematics 191 Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 Linking Symbols with the Bone Tool. . . . . . . . 191 Selecting and Transforming Objects . . . . . . . . . . 54 Animating the Armature . . . . . . . . . . . . . . . . . . . . . . . . 195 HOUR 3: Importing Graphics into Flash 69 HOUR 11: Simulating 3D Animation 203 Vector Graphics Versus Raster Graphics . . . . 69 Creating a 3D Movie Clip . . . . . . . . . . . . . . . . . . . . . . . . 203 Reasons to Avoid Importing Graphics . . . . . . 70 Moving Objects with the 3D Importing Vector Graphics . . . . . . . . . . . . . . . . . . . . . . . . 71 Translation Tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209 Using Bitmaps (Also Known as Raster Rotating Objects with the 3D Graphics) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 Rotation Tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210 HOUR 4: Staying Organized with the Library HOUR 12: Reusing Your Animations and Layers 89 with Motion Presets 215 The Concept of the Library . . . . . . . . . . . . . . . . . . . . . . 89 The Motion Presets Panel . . . . . . . . . . . . . . . . . . . . . . . . 215 Using the Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 Applying an Existing Motion Preset . . . . . . . . 217 Using Symbols from the Library . . . . . . . . . . . . . . 100 Editing an Existing Preset with the Motion Editor Panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222 HOUR 5: Controlling Color 113 Using Blends and Filters . . . . . . . . . . . . . . . . . . . . . . . . . . 113 HOUR 13: Including Sound in Creating and Saving Color Swatches . . . . . . 118 Animations 229 Importing Sounds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229 HOUR 6: Applied Layout Techniques 129 Using Sounds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 232 Setting Text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129 Controlling Quality and File Size . . . . . . . . . . . . 241 Applied Examples Using Color Styles, Blends, and Filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
5. iv Sams Teach Yourself Adobe® Flash® CS4 Professional in 24 Hours HOUR 14: Nesting Animations in Movie HOUR 21: Designing a Website to Clip and Graphic Symbols 253 Be Modular 391 Movie Clip Symbol Behavior . . . . . . . . . . . . . . . . . . 253 Loading Movies or Images . . . . . . . . . . . . . . . . . . . . . . 391 Subtleties of Movie Clips . . . . . . . . . . . . . . . . . . . . . . . . 260 Determining When a Movie Is Fully Loaded . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 395 HOUR 15: Creating Special Effects 267 Playing External Sounds . . . . . . . . . . . . . . . . . . . . . . . . 398 Effects with Shapes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267 Loading External Text . . . . . . . . . . . . . . . . . . . . . . . . . . . . 399 Splatter Movie Clips with the Spray Brush Tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272 HOUR 22: Minimizing File Size 405 Using Filters for Special Effects. . . . . . . . . . . . . . . . 274 File Size Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . 405 Masking Effects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277 HOUR 23: Optimizing Performance 427 Part III: Adding Interactivity and Video Measuring Performance . . . . . . . . . . . . . . . . . . . . . . . . . . 427 Impacts on Performance . . . . . . . . . . . . . . . . . . . . . . . . . . 428 HOUR 16: Basic Interactivity 287 Basic ActionScript . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287 HOUR 24: Publishing a Creation 435 Making Simple Buttons . . . . . . . . . . . . . . . . . . . . . . . . . . 295 How to Publish . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 435 Listening for Events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 299 Adding Metadata to Your Flash Creation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 443 HOUR 17: Introducing Components 313 Choosing Which Version to Publish . . . . . . . . 445 What Is a Component? . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313 Deciding Which Media Types to Using the Button Component . . . . . . . . . . . . . . . . . . 317 Publish . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 446 Using the RadioButton Component . . . . . . . . 319 Exporting Other Media Types. . . . . . . . . . . . . . . . . . 455 Changing Component Appearances . . . . . . . . 322 Index 459 HOUR 18: Using Components 329 Using Data Providers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 329 Working with Other Components . . . . . . . . . . . . 337 HOUR 19: Using Video 345 Embedding Video Versus Playing External Video . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 345 Using Video . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 352 3D Animation with Video. . . . . . . . . . . . . . . . . . . . . . . . 363 Part IV: Putting It All Together for the Web HOUR 20: Linking a Movie to the Web 369 Basic Publishing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 369 Simple Hyperlinks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 373 Using Style Sheets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 378 What Other Web Tasks Can Flash Do? . . . . 380 Using Flash Inside a Larger Website . . . . . . . . 382 Uploading Files to a Web Server . . . . . . . . . . . . . . 386
6. About the Authors Phillip Kerman is an independent programmer, teacher, and writer, who specializes in the Adobe Flash platform. He has trained and made presentations around the world, in such exotic locations as Reykjavik, Iceland; Melbourne, Australia; Amsterdam, Holland; and McAlester, Oklahoma. He has programmed several games on MSN and Messenger Live, including Sudoku Too and Jigsaw Too, as well as the real-time cattle auction site stampedecattle.com. Phillip is also the author of Macromedia Flash @work, Flash MX 2004 for Rich Internet Applications, and ActionScripting in Flash MX from New Riders Publishing. Lynn Beighley is a freelance author, web designer, and web developer. After going back to school to get a Masters in Computer Science, she worked for the acronyms NRL and LANL. Then, she discovered Flash and wrote her first bestseller. A victim of bad timing, she moved to Silicon Valley just before the great crash. She spent several years working for Yahoo! and writing other books and training courses. Upon discovering that technical book writing actually paid real money, she learned to accept and enjoy it. Finally giving in to her creative writing bent, she moved to the New York area to get an MFA in creative writing. She current- ly creates Flash animations and applications that range from the ridiculous to the sublime.
7. Acknowledgments CS4 Edition The creation of this book could not have happened without the skill and patience of many, many people at Sams Publishing. Most of all, I want to thank Mark Taber for offering me this opportunity and Philip Kerman for writing such a great book. I also greatly appreciate the efforts of Songlin Qiu for keeping me on track and organized, not an easy task. Other folks I’d like to thank include Seth Kerney, Brandon Houston, and Jovana San Nicolas-Shirley. Finally, thank you Adobe for keeping Flash the great product that it is and taking it in inter- esting new directions. Keep up the awesome work! —Lynn Beighley CS3 Edition Most successful feats involve the efforts of many people. This book is no exception. I’m proud of the result, but I can’t take full credit. Here is my attempt to acknowledge everyone. First, I’d like to thank the people at Sams Publishing. When Randi Roger approached me, not only did she provide the faith that I could write this book, but she also stressed the sup- port I would receive from Sams Publishing. She wasn’t exaggerating. The following people were professional and prompted me every step of the way: Betsy Brown, Lynn Baus, Brandon Houston, Jeff Schultz, Amy Patton, Carol Bowers, Mark Taber, Kate Small, Matt Purcell, Vanessa Evans, and Damon Jordan (who as Development Editor made this book flow), plus all the editors listed in the front of this book. When you look at other Sams books, you’ll see many of these people acknowledged for a reason—they are great! There are countless correspondents with whom I’ve learned a lot about Flash. Instead of naming several and inadvertently neglecting many, let me just say that participating in local user groups and online forums is a great way to expand your knowledge and build your business—they’ve helped me and helped this book. Of all the places I’ve learned about Flash, being in the classroom and teaching has probably been the most educational for me. The students and staff of the Northwest Academy, Pacific Northwest College of Art and Portland Community College deserve special recognition. —Phillip Kerman