Table Of ContentWHERE ARE THE LESSON FILES?
Thank you for purchasing this digital version of:
The print version of this title comes with a disc of
lesson fi les. As an eBook reader, you have access
to these fi les by following the steps below:
1. On your PC or Mac, open a web browser and go to this URL:
2. Download the ZIP fi le (or fi les) from the web site to your hard drive.
3. Unzip the fi les and follow the directions for use in the Read Me
included in the download.
Please note that many of our lesson materials can be very large,
especially image and video fi les. You will be able to see the size of any
fi le for download once you reach the URL listed above.
If you are unable to locate the fi les for this title by following the steps
above, please email [email protected] and supply the URL from step one.
Our customer service representatives will assist you as soon as possible.
Legal Notice: Peachpit Press makes no warranty or representation, either express or implied, with respect to this software, its quality,
performance, merchantability, or fi tness for a particular purpose. In no event will Peachpit Press, its distributors, or dealers be liable for
direct, indirect, special, incidental or consequential damages arising out of the use or inability to use the software. The exclusion of implied
warranties is not permitted in some states. Therefore, the above exclusion may not apply to you. This warranty provides you with specifi c
legal rights. There may be other rights that you may have that vary from state to state.
The software and media fi les are copyrighted by the authors and Peachpit Press. You have the non-exclusive right to use these programs
and fi les. You may use them on one computer at a time. You may not distribute the URL to third parties or redistribute the fi les over a
network. You may transfer the fi les onto a single hard disk so long as you can prove ownership of this eBook.
You may not reverse engineer, decompile, or disassemble the software or media fi les. You may not modify or translate the software or
media, or distribute copies of the software or media without the written consent of Peachpit Press.
ADOBE® FLASH® CATALYST™ CS5
CLASSROOM IN A BOOK
®
Th e offi cial training workbook from Adobe Systems
www.adobepress.com
Adobe® Flash Catalyst® CS5 Classroom in a Book®
© 2010 Adobe Systems Incorporated and its licensors. All rights reserved.
If this guide is distributed with software that includes an end user agreement, this guide, as well as the software
described in it, is furnished under license and may be used or copied only in accordance with the terms of such license.
Except as permitted by any such license, no part of this guide may be reproduced, stored in a retrieval system, or
transmitted, in any form or by any means, electronic, mechanical, recording, or otherwise, without the prior written
permission of Adobe Systems Incorporated. Please note that the content in this guide is protected under copyright law
even if it is not distributed with software that includes an end user license agreement.
Th e content of this guide is furnished for informational use only, is subject to change without notice, and should not be
construed as a commitment by Adobe Systems Incorporated. Adobe Systems Incorporated assumes no responsibility or
liability for any errors or inaccuracies that may appear in the informational content contained in this guide.
Please remember that existing artwork or images that you may want to include in your project may be protected under
copyright law. Th e unauthorized incorporation of such material into your new work could be a violation of the rights of
the copyright owner. Please be sure to obtain any permission required from the copyright owner.
Any references to company names in sample fi les are for demonstration purposes only and are not intended to refer to
any actual organization.
Adobe, the Adobe logo, Adobe ActionScript, Adobe After Eff ects, Adobe AIR, Adobe Captivate, Adobe Dreamweaver,
Adobe Encore, Adobe Fireworks, Adobe Flash, Adobe Flash Builder, Adobe Flash Catalyst, Adobe Flash Player, Adobe
Flex, Adobe Illustrator, Adobe InDesign, Adobe Media Encoder, Adobe Media Player, Adobe Photoshop, Adobe
Presenter, Adobe Premiere, and Classroom in a Book are either registered trademarks or trademarks of Adobe Systems
Incorporated in the United States and/or other countries.
Apple, Mac OS, and Macintosh, are trademarks of Apple, registered in the U.S. and other countries. Microsoft,
Windows, and Internet Explorer are either registered trademarks or trademarks of Microsoft Corporation in the U.S.
and/or other countries. Java and JavaScript are registered trademarks of Sun Microsystems. All other trademarks are
the property of their respective owners.
Adobe Systems Incorporated, 345 Park Avenue, San Jose, California 95110-2704, USA
Notice to U.S. Government End Users. Th e Software and Documentation are “Commercial Items,” as that term is
defi ned at 48 C.F.R. §2.101, consisting of “Commercial Computer Software” and “Commercial Computer Software
Documentation,” as such terms are used in 48 C.F.R. §12.212 or 48 C.F.R. §227.7202, as applicable. Consistent with
48 C.F.R. §12.212 or 48 C.F.R. §§227.7202-1 through 227.7202-4, as applicable, the Commercial Computer Software
and Commercial Computer Software Documentation are being licensed to U.S. Government end users (a) only as
Commercial Items and (b) with only those rights as are granted to all other end users pursuant to the terms and condi-
tions herein. Unpublished-rights reserved under the copyright laws of the United States. Adobe Systems Incorporated,
345 Park Avenue, San Jose, CA 95110-2704, USA. For U.S. Government End Users, Adobe agrees to comply with all
applicable equal opportunity laws including, if appropriate, the provisions of Executive Order 11246, as amended,
Section 402 of the Vietnam Era Veterans Readjustment Assistance Act of 1974 (38 USC 4212), and Section 503 of the
Rehabilitation Act of 1973, as amended, and the regulations at 41 CFR Parts 60-1 through 60-60, 60-250, and 60-741.
Th e affi rmative action clause and regulations contained in the preceding sentence shall be incorporated by reference.
Adobe Press books are published by Peachpit, a division of Pearson Education located in Berkeley, California. For the
latest on Adobe Press books, go to www.adobepress.com. To report errors, please send a note to [email protected].
For information on getting permission for reprints and excerpts, contact [email protected].
Writer: Scott Tapley
Project Editor: Rebecca Freed
Development Editor: Robyn G. Th omas
Production Editor: Cory Borman
Copyeditor: Scout Festa
Technical Editor: Angela Nimer
Compositor: David Van Ness
Indexer: James Minkin
Cover design: Eddie Yuen
Interior design: Mimi Heft
Printed and bound in the United States of America
ISBN-13: 978-0-321-70358-3
ISBN-10: 0-321-70358-8
9 8 7 6 5 4 3 2 1
WHAT’S ON THE DISC
Here is an overview of the contents of the Classroom in a Book disc
Th e Adobe Flash Catalyst CS5 Classroom in a Book disc includes the lesson fi les
that you’ll need to complete the exercises in this book, as well as other content
to help you learn more about Adobe Flash Catalyst CS5 and use it with greater
effi ciency and ease. Th e diagram below represents the contents of the disc, which
should help you locate the fi les you need.
.seirtnuoc reh©AII5ACtWSSol/ rlBB21 orI/0DNNi0gLdN1nh--0a11 tD. OsAS03A . rdO::eU o s90BebWeh7-ertS 3v8 SEneS2i -yd1n®0sS./®to - i-MeM7t3Fmaa0rR2dsAo3L1 eIp5n- rCi7cno8OAoC0 -t Orh 38ftpeSoo5S sOUr8ao®HSt-reAc3id.MM® fCo krAa mITedNaArt aL rAoY kraS mBTedaTrOMt dCerOeSAtsdi5ogebKre a, trhe®eh tAied soib sew loodgno,i WCl .assesirrtonoumo ic nr ea hBtoo odkn aa n.Sd .UFl eashht nCia dtealryestts iagree rt r,ealpdpeAm afork ks raofm Aeddoabrte aS syis tSeO mcsa IMn c.doreptaor EffcycLoooaoallncpuddeh yreeb hrrltees .ha igYnsersiosdsnsoiue d dneo ewlr aehi cvtisahlhesnls eo n lbie nteLess eeff sfiooosdoswlr ndtoeon.len y resos uto s
Online resources
Links to Adobe Community
Help, product Help and
Support pages, Adobe
Adobe Press
certifi cation programs,
Adobe TV, and other useful
online resources can be
Find information
found inside a handy HTML
about other Adobe
fi le. Just open it in your Web
Press titles, covering
browser and click on the
the full spectrum
links, including a special
of Adobe products,
link to this book’s product
in the Online
page where you can access
Resources fi le.
updates and bonus material.
CONTENTS
GETTING STARTED 1
About Classroom in a Book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Prerequisites . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Installing Flash Catalyst . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Optimizing performance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Checking for updates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Flash Player version . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Copying the lesson fi les . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
How to use these lessons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Standard elements in the book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Additional resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Adobe certifi cation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1 GETTING TO KNOW ADOBE FLASH CATALYST CS5 8
Lesson Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
About Flash Catalyst . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10
Is Flash Catalyst the right tool for you? . . . . . . . . . . . . . . . . . . . . . .10
Key features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Additional benefi ts for designers . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Flash Catalyst design workfl ow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Opening a new Flash Catalyst project. . . . . . . . . . . . . . . . . . . . . . .14
Finding your way around . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Design workspace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Code workspace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18
Opening an existing Flash Catalyst project . . . . . . . . . . . . . . . . . .19
iv CONTENTS
Exploring the Design workspace . . . . . . . . . . . . . . . . . . . . . . . . . . .19
Moving around the workspace . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20
Adjusting panels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20
Zooming the artboard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Panning the artboard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Previewing a project in a browser . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Getting Flash Catalyst Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .24
2 PREPARING, IMPORTING, AND PLACING ARTWORK 28
Lesson Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28
Preparing a design document . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .30
Choose your design application . . . . . . . . . . . . . . . . . . . . . . . . . . . .30
Plan the structure of your application . . . . . . . . . . . . . . . . . . . . . .30
Group complex objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Flatten artwork with fi lters and eff ects . . . . . . . . . . . . . . . . . . . . . . 32
Name everything . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Embed images in the design document . . . . . . . . . . . . . . . . . . . . 33
Manage fonts when sharing fi les . . . . . . . . . . . . . . . . . . . . . . . . . . .34
Identify duplicate component assets . . . . . . . . . . . . . . . . . . . . . . .34
Set component properties in Flash Catalyst . . . . . . . . . . . . . . . . . 35
Create sample artwork for a list of images or text . . . . . . . . . . . 35
Hide, show, and lock layers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .36
Exporting an FXG fi le from Adobe Fireworks . . . . . . . . . . . . . . . .36
Importing artwork . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Import a design document . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Import additional images . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .40
Position images in the artboard . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Optimizing artwork . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Optimize artwork . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
ADOBE FLASH CATALYST CS5 CLASSROOM IN A BOOK v
3 MANAGING THE LIBRARY 46
Lesson Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .46
Viewing the Library panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .48
How do assets get into the Library panel? . . . . . . . . . . . . . . . . . .48
Add assets to the Library panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . .49
Preview fi les in the Library panel . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Deleting assets from the project. . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Compressing images in the Library panel . . . . . . . . . . . . . . . . . . . 53
Renaming project assets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Using assets in the Library panel . . . . . . . . . . . . . . . . . . . . . . . . . . .54
Sharing project libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .56
Export a library package . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .56
Import a library package . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
4 MANAGING LAYERS 60
Lesson Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .60
Exploring the Layers panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Expand and collapse layers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Show and hide layers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Lock and unlock layers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Grouping objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .66
Renaming objects in the Layers panel . . . . . . . . . . . . . . . . . . . . . .66
Optimizing complex groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Adding and deleting layers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .69
Stacking artwork using layers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .69
5 WORKING WITH PAGES AND STATES 74
Lesson Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .74
Page and component states . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .76
Duplicating and modifying page states . . . . . . . . . . . . . . . . . . . . . 77
Save time by duplicating page states . . . . . . . . . . . . . . . . . . . . . . . 77
Give page states descriptive names . . . . . . . . . . . . . . . . . . . . . . . .78
vi CONTENTS
Show and hide artwork in each page state . . . . . . . . . . . . . . . . . .78
Adding and deleting states . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
Add a blank page state . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
Add objects to blank page states . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
Delete objects from specifi c states . . . . . . . . . . . . . . . . . . . . . . . . .84
Delete page states . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
6 CREATING INTERACTIVE COMPONENTS 88
Lesson Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .88
The building blocks of RIAs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .90
Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .90
Interactions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .90
Using wireframe components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
Add and modify wireframe buttons . . . . . . . . . . . . . . . . . . . . . . . . . 91
Add wireframe text input fi elds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
Add wireframe radio buttons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .96
Add a wireframe check box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .96
Add wireframe scroll bars . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
Converting artwork to built-in components . . . . . . . . . . . . . . . . .99
Convert artwork to buttons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .100
Create a reusable navigation button . . . . . . . . . . . . . . . . . . . . . . .101
Enable and disable buttons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .103
Create next and previous buttons . . . . . . . . . . . . . . . . . . . . . . . . .104
Create a custom toggle button . . . . . . . . . . . . . . . . . . . . . . . . . . . .105
Convert artwork to scroll bars . . . . . . . . . . . . . . . . . . . . . . . . . . . . .106
Work with text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .109
Create a scroll panel from artwork . . . . . . . . . . . . . . . . . . . . . . . . .112
Creating custom components . . . . . . . . . . . . . . . . . . . . . . . . . . . . .113
Adding interactivity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .115
Add page navigation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .116
Create conditional interactions . . . . . . . . . . . . . . . . . . . . . . . . . . . .116
Link to external content . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .119
ADOBE FLASH CATALYST CS5 CLASSROOM IN A BOOK vii
7 CREATING TRANSITIONS AND ACTION SEQUENCES 122
Lesson Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .122
Transitions and action sequences . . . . . . . . . . . . . . . . . . . . . . . . . .124
Inspecting default transition eff ects . . . . . . . . . . . . . . . . . . . . . . .125
Adding smooth transitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .127
Fine-tuning transitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .129
Adjust transition duration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .130
Change transition timing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .131
Ease transitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .132
Adding and changing eff ects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .133
Swap one eff ect for another . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .134
Add multiple eff ects to the same object . . . . . . . . . . . . . . . . . . .136
Adding action sequences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .138
Add an action sequence interaction . . . . . . . . . . . . . . . . . . . . . . .138
Edit an action sequence in the Timeline . . . . . . . . . . . . . . . . . . .139
Flash Catalyst helper eff ects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .140
8 ADDING AND CONTROLLING VIDEO AND SOUND 142
Lesson Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .142
Preparing video for the web . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .144
What is encoding? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .144
What is a video codec? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .144
How do I encode my video? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .145
Importing and previewing video and sound . . . . . . . . . . . . . . .146
Import video and sound . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .147
Preview video and sound . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .147
Adding video to an application . . . . . . . . . . . . . . . . . . . . . . . . . . . .148
Add video to the artboard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .148
Set video player properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .150
Controlling video playback . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .152
Attach controls to the video . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .152
viii CONTENTS