Thư viện tri thức trực tuyến
Kho tài liệu với 50,000+ tài liệu học thuật
© 2023 Siêu thị PDF - Kho tài liệu học thuật hàng đầu Việt Nam

Teach yourseft visually adobe flash CS4 professtional
Nội dung xem thử
Mô tả chi tiết
Butters
Full Color Flash
® CS4
Professional
Adobe®
Look
Inside!
Are you a visual learner? Do you prefer instructions
that show you how to do something — and skip the
long-winded explanations? If so, then this book is
for you. Open it up and you’ll find clear, step-by-step
screen shots that show you how to tackle more than
135 Flash CS4 Professional tasks. Each task-based
spread covers a single technique, sure to help you get
up and running on Flash CS4 Professional in no time.
Spine = 0.70"
Keith Butters
You’ll learn to:
• Set up new Flash documents
• Use Pencil, Paintbrush, and Pen
• Import vector art and bitmaps
• Create timeline animations
• Add interactive properties
• Integrate sound and video files
• Two-page lessons break big topics into bite-sized modules
• Succinct explanations walk you through step by step
• Full-color screen shots demonstrate each task
• Helpful sidebars offer practical
tips and tricks
Adobe®
Flash®
CS4
Professional
Are you a visual learner? Do you prefer instructions
that show you how to do something — and skip the
long-winded explanations? If so, then this book is
for you. Open it up and you’ll find clear, step-by-step
screen shots that show you how to tackle more than
135 Flash CS4 Professional tasks. Each task-based
spread covers a single technique, sure to help you get
up and running on Flash CS4 Professional in no time.
You’ll learn to:
• Set up new Flash documents
• Use Pencil, Paintbrush, and Pen
• Import vector art and bitmaps
• Create timeline animations
• Add interactive properties
• Integrate sound and video files
• Two-page lessons break big topics into bite-sized modules
• Succinct explanations walk you through step by step
• Full-color screen shots demonstrate each task
• Helpful sidebars offer practical
tips and tricks
Internet / Web Page Design
$29.99 USA • $32.99 CAN • £19.99 UK
www.wiley.com/go/visual
www.dbebooks.com - Free Books & magazines
01_344743-ffirs.qxp 12/18/08 10:48 PM Page iii
Flash®
CS4 Professional
by Keith Butters
01_344743-ffirs.qxp 12/18/08 10:48 PM Page i
Teach Yourself Visually™ Flash® CS4
Professional
Published by
Wiley Publishing, Inc.
10475 Crosspoint Boulevard
Indianapolis, IN 46256
www.wiley.com
Published simultaneously in Canada
Copyright © 2009 by Wiley Publishing, Inc., Indianapolis,
Indiana
No part of this publication may be reproduced, stored in a
retrieval system or transmitted in any form or by any means,
electronic, mechanical, photocopying, recording, scanning or
otherwise, except as permitted under Sections 107 or 108 of the
1976 United States Copyright Act, without either the prior
written permission of the Publisher, or authorization through
payment of the appropriate per-copy fee to the Copyright
Clearance Center, 222 Rosewood Drive, Danvers, MA 01923,
(978) 750-8400, fax (978) 646-8600. Requests to the Publisher
for permission should be addressed to the Permissions
Department, John Wiley & Sons, Inc. 111 River Street,
Hoboken, NJ 07030, (201) 748-6011, fax (201) 748-6008,
or online at www.wiley.com/go/permissions.
Library of Congress Control Number: 2008942703
ISBN: 978-0-470-34474-3
Manufactured in the United States of America
10 9 8 7 6 5 4 3 2 1
Trademark Acknowledgments
Wiley, the Wiley Publishing logo, Visual, the Visual logo,
Simplified, Master VISUALLY, Teach Yourself VISUALLY,
Visual Blueprint, Read Less - Learn More and related trade
dress are trademarks or registered trademarks of John Wiley &
Sons, Inc. and/or its affiliates. Adobe and Flash are registered
trademarks of Adobe Systems Incorporated. All other
trademarks are the property of their respective owners. Wiley
Publishing, Inc. is not associated with any product or vendor
mentioned in this book.
LIMIT OF LIABILITY/DISCLAIMER OF WARRANTY: THE
PUBLISHER AND THE AUTHOR MAKE NO REPRESENTATIONS
OR WARRANTIES WITH RESPECT TO THE ACCURACY OR
COMPLETENESS OF THE CONTENTS OF THIS WORK AND
SPECIFICALLY DISCLAIM ALL WARRANTIES, INCLUDING
WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A
PARTICULAR PURPOSE. NO WARRANTY MAY BE CREATED OR
EXTENDED BY SALES OR PROMOTIONAL MATERIALS. THE
ADVICE AND STRATEGIES CONTAINED HEREIN MAY NOT BE
SUITABLE FOR EVERY SITUATION. THIS WORK IS SOLD WITH
THE UNDERSTANDING THAT THE PUBLISHER IS NOT
ENGAGED IN RENDERING LEGAL, ACCOUNTING, OR OTHER
PROFESSIONAL SERVICES. IF PROFESSIONAL ASSISTANCE IS
REQUIRED, THE SERVICES OF A COMPETENT PROFESSIONAL
PERSON SHOULD BE SOUGHT. NEITHER THE PUBLISHER
NOR THE AUTHOR SHALL BE LIABLE FOR DAMAGES ARISING
HEREFROM. THE FACT THAT AN ORGANIZATION OR
WEBSITE IS REFERRED TO IN THIS WORK AS A CITATION
AND/OR A POTENTIAL SOURCE OF FURTHER INFORMATION
DOES NOT MEAN THAT THE AUTHOR OR THE PUBLISHER
ENDORSES THE INFORMATION THE ORGANIZATION OR
WEBSITE MAY PROVIDE OR RECOMMENDATIONS IT MAY
MAKE. FURTHER, READERS SHOULD BE AWARE THAT
INTERNET WEBSITES LISTED IN THIS WORK MAY HAVE
CHANGED OR DISAPPEARED BETWEEN WHEN THIS WORK
WAS WRITTEN AND WHEN IT IS READ.
FOR PURPOSES OF ILLUSTRATING THE CONCEPTS
AND TECHNIQUES DESCRIBED IN THIS BOOK, THE
AUTHOR HAS CREATED VARIOUS NAMES, COMPANY
NAMES, MAILING, E-MAIL AND INTERNET
ADDRESSES, PHONE AND FAX NUMBERS AND
SIMILAR INFORMATION, ALL OF WHICH ARE
FICTITIOUS. ANY RESEMBLANCE OF THESE
FICTITIOUS NAMES, ADDRESSES, PHONE AND FAX
NUMBERS AND SIMILAR INFORMATION TO ANY
ACTUAL PERSON, COMPANY AND/OR
ORGANIZATION IS UNINTENTIONAL AND PURELY
COINCIDENTAL.
Contact Us
For general information on our other products and services
please contact our Customer Care Department within the U.S.
at 800-762-2974, outside the U.S. at 317-572-3993 or fax
317-572-4002.
For technical support please visit www.wiley.com/techsupport.
Sales
Contact Wiley
at (800) 762-2974 or
fax (317) 572-4002.
01_344743-ffirs.qxp 12/18/08 10:48 PM Page ii
“Like a lot of other people, I understand things best when
I see them visually. Your books really make learning easy
and life more fun.”
John T. Frey (Cadillac, MI)
“I have quite a few of your Visual books and have been
very pleased with all of them. I love the way the lessons
are presented!”
Mary Jane Newman (Yorba Linda, CA)
“I just purchased my third Visual book (my first two are
dog-eared now!), and, once again, your product has
surpassed my expectations.
Tracey Moore (Memphis, TN)
“I am an avid fan of your Visual books. If I need to learn
anything, I just buy one of your books and learn the topic
in no time. Wonders! I have even trained my friends to
give me Visual books as gifts.”
Illona Bergstrom (Aventura, FL)
“Thank you for making it so clear. I appreciate it. I will
buy many more Visual books.”
J.P. Sangdong (North York, Ontario, Canada)
“I have several books from the Visual series and have
always found them to be valuable resources.”
Stephen P. Miller (Ballston Spa, NY)
“Thank you for the wonderful books you produce. It
wasn’t until I was an adult that I discovered how I learn
— visually. Nothing compares to Visual books. I love the
simple layout. I can just grab a book and use it at my
computer, lesson by lesson. And I understand the
material! You really know the way I think and learn.
Thanks so much!”
Stacey Han (Avondale, AZ)
“I absolutely admire your company’s work. Your books
are terrific. The format is perfect, especially for visual
learners like me. Keep them coming!”
Frederick A. Taylor, Jr. (New Port Richey, FL)
“I have several of your Visual books and they are the
best I have ever used.”
Stanley Clark (Crawfordville, FL)
“I bought my first Teach Yourself VISUALLY book last
month. Wow. Now I want to learn everything in this easy
format!”
Tom Vial (New York, NY)
“Thank you, thank you, thank you...for making it so easy
for me to break into this high-tech world. I now own four
of your books. I recommend them to anyone who is a
beginner like myself.”
Gay O’Donnell (Calgary, Alberta, Canada)
“I write to extend my thanks and appreciation for your
books. They are clear, easy to follow, and straight to the
point. Keep up the good work! I bought several of your
books and they are just right! No regrets! I will always
buy your books because they are the best.”
Seward Kollie (Dakar, Senegal)
“Compliments to the chef!! Your books are extraordinary!
Or, simply put, extra-ordinary, meaning way above the
rest! THANK YOU THANK YOU THANK YOU! I buy them
for friends, family, and colleagues.”
Christine J. Manfrin (Castle Rock, CO)
“What fantastic teaching books you have produced!
Congratulations to you and your staff. You deserve the
Nobel Prize in Education in the Software category.
Thanks for helping me understand computers.”
Bruno Tonon (Melbourne, Australia)
“Over time, I have bought a number of your ‘Read Less -
Learn More’ books. For me, they are THE way to learn
anything easily. I learn easiest using your method of
teaching.”
José A. Mazón (Cuba, NY)
“I am an avid purchaser and reader of the Visual series,
and they are the greatest computer books I’ve seen. The
Visual books are perfect for people like myself who enjoy
the computer, but want to know how to use it more
efficiently. Your books have definitely given me a greater
understanding of my computer, and have taught me to
use it more effectively. Thank you very much for the hard
work, effort, and dedication that you put into this series.”
Alex Diaz (Las Vegas, NV)
Praise for Visual Books
July 05
01_344743-ffirs.qxp 12/18/08 10:48 PM Page iii
Credits
Project Editor
Sarah Cisco
Senior Acquisitions Editor
Jody Lefevere
Copy Editor
Kim Heusel
Technical Editor
Jon McFarland
Editorial Manager
Robyn Siesky
Business Manager
Amy Knies
Sr. Marketing Manager
Sandy Smith
Manufacturing
Allan Conley
Linda Cook
Paul Gilchrist
Jennifer Guynn
Book Design
Kathie Rickard
Production Coordinator
Erin Smith
Layout
Carrie A. Cesavice
Andrea Hornberger
Jennifer Mayberry
Screen Artist
Ana Carrillo
Jill Proll
Illustrators
Ronda David-Burroughs
Cheryl Grubbs
Proofreader
Linda Quigley
Quality Control
David Faust
Indexer
Potomac Indexing, LLC
Vice President and Executive
Group Publisher
Richard Swadley
Vice President and Executive
Publisher
Barry Pruett
Composition Director
Debbie Stailey
01_344743-ffirs.qxp 12/18/08 10:48 PM Page iv
About the Author
Keith Butters is a founding partner and executive creative director at
The Barbarian Group. He has over 10 years experience architecting,
designing, and programming for the Internet. Some notable and
award-winning Web sites that Keith has worked on include several
projects for Volkswagen of America, Comcastic!, the Method “Come
Clean” site, and the Subservient Chicken. Visit The Barbarian Group’s
Web site at www.barbariangroup.com to learn more and to see a full
portfolio.
Author’s Acknowledgments
Thanks to the team at Wiley Publishing, especially Jody Lefevere and
Sarah Cisco for working with me on this book, and for their patience.
Thanks to all of the barbarians, for continuing to be an inspiring
collective of the most talented and interesting people I have ever
known.
And, a special thanks to Melanie for her love and support, and for
trying to keep me on track with the writing of this book.
01_344743-ffirs.qxp 12/18/08 10:48 PM Page v
Table of Contents
Introducing Flash . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Get to Know the Flash User Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Using Flash Utility Panels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Open a Flash File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Save and Close a Flash File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Save and Version Your Work with Save As . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Create a New Flash Document . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Organize and Save Your Workspace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Move and Zoom the Work Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Using Rulers and Grids. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Work from a Template . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Using the Properties Inspector. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Set up a New Flash Document . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Adjust Publish Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Test a Flash Movie. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Get Flash Help. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
chapter1 Getting Started with Flash
Click here to see the fighter plane in action!
START
Introducing Flash Drawing Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Understanding Groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Using the Line Tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Draw Lines Freehand with the Pencil Tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Draw Fills with the Brush Tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Draw Shapes with the Pen Tool. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Draw Rectangles and Ovals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Fill Shapes with the Paint Bucket Tool. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
chapter2 Drawing in Flash
02_344743-ftoc.qxp 12/18/08 10:49 PM Page vi
Using the Eraser Tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Select Artwork. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Change the Color of Lines and Fills . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Customize Lines with the Ink Bottle Tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Reshape Lines and Shape Outlines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
Copy Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
Create Custom Color Swatches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
Make a Custom Gradient Fill . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
Transform a Gradient Fill . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Scale and Rotate Objects with the Free Transform Tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
Create Groups of Lines, Fills, and Shapes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
Send Groups Forward and Backward in Space . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
Align Shapes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
Snap to Grid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
Snap to Objects. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
chapter3 Modifying and Positioning Artwork
Add Text with the Text Tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Format a Paragraph . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
Change Text Colors and Fonts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
Copy Text Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
Adjust Text Kerning and Leading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
Move and Resize Text Areas. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
Break Apart Text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
Transform Text. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
chapter4 Working with Text
Text
02_344743-ftoc.qxp 12/18/08 10:49 PM Page vii
Table of Contents
Understanding Vector Art and Bitmaps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
Import a Bitmap . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
Break Apart a Bitmap . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
Create a Bitmap Fill . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
Convert a Bitmap to Vector Art Using Trace Bitmap . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
Import Vector Graphics from Illustrator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
Set Bitmap Properties. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
Import a PSD File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
chapter5 Importing Artwork
Add and Delete Layers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
Set Layer Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
Add a Guide Layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
Make a Layer Mask . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
Group Layers into Folders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
Show and Hide Layers and Layer Groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
Show Layers as Outlines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
Lock Layers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
Rearrange Layers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
chapter6 Working with Layers
02_344743-ftoc.qxp 12/18/08 10:49 PM Page viii
Add and Remove Frames and Keyframes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
Add Frame Labels. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
Move Frames. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
Cut, Copy, and Paste Frames. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146
Reverse Frames. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
Preview Frames in the Timeline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149
chapter7 Working with the Timeline
FRAME
#51
FRAME
#50
#50
#49
STAY BEHIND
FRAME TIMELINE
#49
#48
F
Understanding Symbols and Instances. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152
Types of Symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153
Create a Graphic Symbol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154
Add an Instance of a Symbol to the Stage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156
Modify Instances. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
Swap Symbols. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158
Create a Button Symbol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160
Edit the States of a Button . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162
Add a Behavior to a Button . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166
Create a Movie Clip Symbol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
Preview a Symbol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170
Apply Filters to an Instance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172
Apply a Blend Mode to an Instance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174
Understanding the Different Blend Modes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175
Rotate and Translate MovieClip Instances with 3-D Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176
chapter8 Working with Symbols and Instances
02_344743-ftoc.qxp 12/18/08 10:49 PM Page ix
Table of Contents
Introducing ActionScript. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216
Using the Actions Panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218
Assign Frame Actions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220
Add a gotoAndPlay() Action to the Timeline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222
Work with Instances in ActionScript . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224
Move a Movie Clip with ActionScript . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226
chapter10 Adding Interactivity with ActionScript
Variables
var numberOf
Tomatoes:
Number=100
Create a Frame-by-Frame Animation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180
Onion-Skinning an Animation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182
Edit Multiple Frames. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184
Understanding Tweening . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186
Create a Classic Tween. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188
Create a Motion Tween . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190
Create a Motion Tween with 3-D Transformations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194
Create a Shape Tween . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198
Add Shape Hints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202
Animate Along a Path. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204
Create a Movie Clip of an Animation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206
Animate a Mask . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208
Add Animation to a Button . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210
chapter9 Creating Timeline Animation in Flash
02_344743-ftoc.qxp 12/18/08 10:49 PM Page x
Introducing Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250
Add a Component . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252
Delete a Component . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254
Modify a Component’s Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256
Skin a Button Component . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 258
chapter11 Adding Interactivity with User Interface Components
Do Hummingbirds live in your
state?
Yes
No
Import a Sound File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264
Add Event Sounds to the Timeline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 266
Add Sound to a Button. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 268
Add Streaming Sound to the Timeline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 270
Fade a Sound In and Out. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272
Create a Sound Loop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 274
Edit Audio Settings for Export . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276
chapter12 Integrating Sound
Fade Out a Movie Clip with ActionScript . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230
Animate Using the Flash Transitions Package . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 234
Understanding Events and Event Handlers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236
Start and Stop an Animation with a Button . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 238
Create a Dynamic Text Counter. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240
Create and Include an External ActionScript File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244
this.
stadium. this.
stadium.
field.
ball ba
this ball this.ball
02_344743-ftoc.qxp 12/18/08 10:49 PM Page xi
Table of Contents
Understanding Dynamic Content in Flash . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292
Load a JPEG File Dynamically with a Component . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 294
Load a SWF File Dynamically with ActionScript . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 296
Create an XML File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 298
Load Data from an XML File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 300
Use XML to Create Dynamic Text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 304
Use XML to Create a JPEG Gallery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 308
Make a Simple Preloader for Loading an Image . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 312
chapter14 Loading External Elements Dynamically at Runtime
Loading
Data . . . Data
xmlta
Understanding FLV and F4V Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280
Embed a Video . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282
Import a Video . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 284
Skinning the Video Player Component . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 286
chapter13 Adding Video
Now in
Flash Player
Flash Player
6 and higher
02_344743-ftoc.qxp 12/18/08 10:49 PM Page xii
Get to Know the Publish Settings Dialog Box. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 318
Publish a SWF File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 320
Export a GIF or JPEG Image. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 322
Export Animation as Video. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 324
Publish a Flash Movie as a Web Page. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326
Using the Bandwidth Profiler. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 330
Publish a Self-Contained Projector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 332
chapter15 Publishing Flash Movies
02_344743-ftoc.qxp 12/18/08 10:49 PM Page xiii