Lesson 01 Animate Book
Lesson 01 Animate Book
638"
Classroom in a Book®
The fastest, easiest, most comprehensive way to learn “The Classroom in a Book
2014 release
Adobe Flash Professional CC (2014 release) series is by far the best
training material on
2014 release
Classroom in a Book®, the best-selling series of hands-on software training
workbooks, helps you learn the features of Adobe software quickly and easily. the market. Everything
Classroom in a Book offers what no other book or training program does—an
official training series from Adobe Systems Incorporated, developed with the you need to master the
support of Adobe product experts. software is included:
Adobe Flash Professional CC Classroom in a Book (2014 release) contains 10 clear explanations of
lessons that cover the basics and beyond, providing countless tips and techniques
to help you become more productive with the program. You can follow the book
each lesson, step-by-
CHUN
from start to finish or choose only those lessons that interest you. step instructions, and
Purchasing this book gives you access to the downloadable lesson files you the project files for
need to work through the projects in the book and to electronic book updates the students.”
covering new features that Adobe releases for Creative Cloud customers. For
Classroom
in a Book®
Barbara Binder,
access, go to www.peachpit.com/redeem and redeem the unique code provided
Adobe Certified Instructor
inside this book.
Rocky Mountain Training
What you need to use this book: Adobe Flash Professional CC software
(2014 release), for either Windows or Mac OS. (Software not included.)
Note: Classroom in a Book does not replace the documentation, support, facebook.com/
PeachpitCreativeLearning
updates, or any other benefits of being a registered owner of Adobe Flash @adobepress
Professional CC software. @peachpit Nick Taylor
classroom in a book®
CATEGORY: US $59.99
Web Design / Multimedia / Animation
CANADA $68.99
COVER ILLUSTRATION:
Nick Taylor (UK), behance.net/Aeoll
Adobe Press books are published by Peachpit, San Francisco, CA
Printed and made in the USA
www.adobepress.com
The official training workbook from Adobe
Russell Chun
From the Library of Hassan Ali AlMarhoun
Nick Taylor
CLASSROOM IN A BOOK®
The official training workbook from Adobe
Russell Chun
From the Library of Hassan Ali AlMarhoun
Adobe® Flash® Professional CC Classroom in a Book® (2014 release)
© 2015 Adobe Systems Incorporated and its licensors. All rights reserved.
If this guide is distributed with software that includes an end user license 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.
The 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 responsi-
bility 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. The 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 files are for demonstration purposes only and are not intended to
refer to any actual organization.
Adobe, the Adobe logo, Flash, Flash Player, ActionScript, AIR, Dreamweaver, Edge Animate, Illustrator, Media
Encoder, Photoshop, and Classroom in a Book are either registered trademarks or trademarks of Adobe Systems
Incorporated in the United States and/or other countries.
Apple, iOS, iPad, iPhone, iPod, Mac OS, Macintosh, QuickTime, Safari, Xcode are trademarks of Apple, regis-
tered in the U.S. and other countries. Amazon, Kindle, Fire and all related logos are trademarks of Amazon.com,
Inc. or its affiliates. NOOK® is a trademark of Barnes & Noble, Inc. Android, Chrome, Google, and YouTube are
registered trademarks of Google Inc. Microsoft, Windows, and Internet Explorer are either registered trademarks
or trademarks of Microsoft Corporation in the U.S. and/or other countries. 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. The Software and Documentation are “Commercial Items,” as that term is
defined at 48 C.F.R. §2.101, consisting of “Commercial Computer Software” and “Commercial ComputerSoftware
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 conditions 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. The affirmative 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 San Francisco, California.
For the latest on Adobe Press books, go to www.adobepress.com. To report errors, please send a note to errata@
peachpit.com. For information on getting permission for reprints and excerpts, contact [email protected].
Writer: Russell Chun Technical Reviewers: Joseph Labrecque and
Project Editor: Victor Gavenda Keith Gladstein
Development Editor: Stephen Nathans-Kelly Indexer: Rebecca Plunkett
Copyeditor and Proofreader: Scout Festa Cover Designer: Eddie Yuen
Production Coordinator: Tracey Croom Interior Designer: Mimi Heft
Compositor: Danielle Foster
Printed and bound in the United States of America
ISBN-13: 978-0-133-92710-8
ISBN-10: 0-133-92710-5
987654321
GETTING STARTED 1
About Classroom in a Book. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
What’s New. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Prerequisites. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Installing Flash. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Accessing the Classroom in a Book Files . . . . . . . . . . . . . . . . . . . . . . 4
How to Use the Lessons. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Additional Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Adobe Authorized Training Centers. . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1 GETTING ACQUAINTED 8
Starting Flash and Opening a File. . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Understanding Document Types. . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Getting to Know the Workspace. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Working with the Library Panel. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Understanding the Timeline. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Organizing Layers in a Timeline. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Using the Properties Inspector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Using the Tools Panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Undoing Steps in Flash. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Previewing Your Movie. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Modifying the Content and Stage . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Saving Your Movie. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Finding Resources for Using Flash. . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Checking for Updates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
iv Contents
vi Contents
INDEX 366
viii Contents
Prerequisites
Before you begin using Adobe Flash Professional CC Classroom in a Book (2014
release), make sure your system is set up correctly and that you’ve installed the
required software. You should have a working knowledge of your computer and
operating system. You should know how to use the mouse and standard menus and
commands, and also how to open, save, and close files. If you need to review these
techniques, see the printed or online documentation included with your Microsoft
Windows or Apple Mac OS software.
If you’re working on Microsoft Windows, you need to download Apple’s
QuickTime software, free from www.apple.com/quicktime/download/, in order to
work with the videos in Lesson 9.
In addition, you need to download the free Adobe AIR runtime, available at
get.adobe.com/air/, to publish desktop applications in Lesson 10.
2 Getting Started
4 Getting Started
Additional Resources
Adobe Flash Professional CC Classroom in a Book (2014 release) is not meant to
replace documentation that comes with the program or to be a comprehensive
reference for every feature. Only the commands and options used in the lessons are
explained in this book. For comprehensive information about program features and
tutorials, refer to these resources:
Adobe Flash Professional CC Help and Support: helpx.adobe.com/flash.html
is where you can find and browse Help and Support content on Adobe.com.
Adobe Flash Professional Help and Adobe Flash Professional Support Center are
accessible from the Help menu in Flash Professional.
Adobe Creative Cloud Learn: For inspiration, key techniques, cross-product
workflows, and updates on new features, go to the Creative Cloud Learn page,
helpx.adobe.com/creative-cloud/learn/tutorials.html. Available to all.
6 Getting Started
Lesson Overview
In this lesson, you’ll learn how to do the following:
• Create a new file in Flash
• Adjust Stage settings and document properties
• Add layers to the Timeline
• Manage keyframes in the Timeline
• Work with imported images in the Library panel
• Move and reposition objects on the Stage
• Open and work with panels
• Select and use tools in the Tools panel
• Preview your animation
• Save your file
• Access online resources for Flash
This lesson will take less than 1 hour to complete. Copy the Lesson01
folder, which contains the images you’ll use in this lesson, onto your
hard drive if it’s not already there. Download the project files for this
lesson from the Lesson & Update Files tab on your Account page at
www.peachpit.com and store them on your computer in a convenient
location, as described in the Getting Started section of this book. Your
Account page is also where you’ll find any updates to the lessons or to
the lesson files. Look on the Lesson & Update Files tab to access the most
current content.
2 Under the General tab, choose the first option, HTML5 Canvas.
The other options target different playback technologies. For example, WebGL
is a document type for animation that takes advantage of hardware-accelerated
support for graphics within HTML. ActionScript 3.0 is a document type that
targets the Flash Player. AIR for Android and AIR for iOS are documents
configured for playback with AIR on an Android or Apple mobile device. AIR
for Desktop is a document configured for playback with AIR on a Mac or
Windows desktop.
3 On the right side of the dialog box, you can choose the dimensions of the Stage
by entering new pixel values for the Width and Height. Enter 800 for Width and
600 for Height. Keep the Ruler units as Pixels.
Leave the Frame rate and Background color for the Stage at their default
settings. You can always edit these document properties, as explained later in
this lesson.
Playback environment
The playback, or runtime, environment is the technology that your final, published
files use to play. Your animations could play in a browser with the Flash Player, or
they could play in a browser with HTML5 and JavaScript. Or, they could play as an
app on a mobile device. You should make that decision first so you can choose the
appropriate document type.
Regardless of the playback environment and document type, all document types
are saved as .fla or .xfl (Flash) files. The difference is that each document type is
configured to export different, final published files.
P Note: This latest
version of Flash • Choose HTML5 Canvas to create animated assets that play back in a modern
Pro supports only browser using HTML5 and JavaScript. You can add interactivity by inserting
ActionScript 3.0. If you
need ActionScript 1.0 or JavaScript within Flash Pro, or to the final published files.
2.0, you must work with
Flash Professional CS6
• Choose WebGL for pure animated assets to take advantage of hardware-
or earlier versions of the accelerated support of graphics. The WebGL document type does not support
software. any interactivity.
• Choose ActionScript 3.0 to create animation and interactivity that play in the
P Note: The
ActionScript 3.0 Flash Player in a desktop browser. ActionScript 3.0 is the latest version of Flash’s
document also supports scripting language, which is similar to JavaScript. Choosing an ActionScript 3.0
publishing content as document doesn’t mean you have to include ActionScript code. It simply means
a projector for either
Macintosh or Windows. that your playback target is the Flash Player.
A projector plays as a • Choose AIR to create animation and interactivity that play as an application
stand-alone application
on the desktop, without on Windows or Mac OS desktops, without needing a browser. You can add
needing a browser. interactivity in an AIR document using ActionScript 3.0.
Stage
Layers
Timeline
2 If you’ve moved some of the panels around and you want to return to one of the
prearranged workspaces, choose Window > Workspaces > Reset and the name
of the preset workspace.
3 To return to the default workspace, choose Window > Workspaces > Essentials.
In this Classroom in a Book, we’ll be using the Essentials workspace.
theater stage, the Stage in Flash is the area that viewers see when a movie is playing.
It contains the text, images, and video that appear on the screen. Move elements on
and off the Stage to place them in and out of view. You can use the rulers (View >
Rulers) or grids (View > Grid > Show Grid) to help you position items on the Stage.
Additionally, you can use the Align panel and other tools you’ll learn about in the
lessons in this book.
By default, you’ll see the gray area off the Stage where you can place elements that
won’t be visible to your audience. The gray area is called the Pasteboard. To see
just the Stage, choose View > Pasteboard to deselect the option. For now, leave the
option selected.
To scale the Stage so that it fits completely in the application window, choose P Note: You can
View > Magnification > Fit in Window. You can also choose different magnification view the Stage in full-
screen mode without
view options from the pop-up menu just above the Stage. the distraction of the
various panels by
choosing View > Screen
Mode > Full Screen
Mode. Use F4 to toggle
the panels, and press
the Esc key to return to
Standard Screen Mode.
2 Click the Background color button next to Stage and choose a new color from
the color palette. Choose dark gray (#333333).
Your Stage is now a different color. You can change the Stage properties at
any time.
Current frame
Frame rate
Lock/Unlock Layer
Renaming a layer
It’s a good idea to separate your content on different layers and name each layer to
indicate its contents so that you can easily find the layer you need later.
1 Select the existing layer, called Layer 1, in the Timeline.
2 Double-click the name of the layer to rename it and type background.
3 Click outside the name box to apply the
new name.
Adding a layer
A new Flash document contains only one layer, but you can add as many layers as
you need. Objects in the top layers will overlap objects in the bottom layers.
1 Select the background layer in the Timeline.
3 Double-click the new layer to rename it and type photo1. Click outside the
name box to apply the new name.
Your Timeline now has two layers. The background layer contains the
background photo, and the newly created photo1 layer above it is empty.
4 Select the top layer, called photo1.
5 Choose Window > Library to open the Library panel if it isn’t already open.
6 Drag the library item called photo1.jpg from the library onto the Stage.
The photo1 JPEG appears on the Stage and overlaps the background image.
7 Choose Insert > Timeline > Layer, or click the New Layer button ( ) below the
Timeline to add a third layer.
8 Rename the third layer photo2.
If you want to rearrange your layers, click and drag any layer to move it to a new
position in the layer stack.
Inserting frames
So far, you have a background photo and another overlapping photo on the Stage,
but your entire animation exists for only a single frame. To create more time on the
Timeline and make this animation run for a longer duration, you must add addi-
tional frames.
1 Select frame 48 in the background layer.
2 Choose Insert > Timeline > Frame (F5). You can also right-click/Ctrl-click P Note: On Windows,
and choose Insert Frame from the context menu that pops up. activate the F-Lock key
to use the F5 function
Flash adds frames in the background layer up to the selected frame, frame 48. key to insert frames.
Creating a keyframe
A keyframe indicates a change in content on the Stage. Keyframes are indicated on
the Timeline as a circle. An empty circle means there is nothing in that particular
layer at that particular time. A filled-in black circle means there is something in
that particular layer at that particular time. The background layer, for example,
contains a filled keyframe (black circle) in the first frame. The photo1 layer also
contains a filled keyframe in its first frame. Both layers contain photos. The photo2
layer, however, contains an empty keyframe in the first frame, indicating that it is
currently empty.
Empty keyframe
Filled keyframe
You’ll insert a keyframe in the photo2 layer at the point in time when you want the
next photo to appear.
Moving a keyframe
If you want photo2.jpg to appear later or earlier in time, you need to move the
keyframe in which it appears closer or further to the right on the Timeline. You
can easily move any keyframe along the Timeline by simply selecting it and then
dragging it to a new position.
1 Select the keyframe in frame 24 on the photo2 layer.
2 Move your mouse cursor slightly, and you’ll see a box icon appear near your
cursor, indicating that you can reposition the keyframe.
3 Click and drag the keyframe to frame 12 in the photo2 layer.
The photo2.jpg image now appears on the Stage much earlier in the animation.
Removing Keyframes
If you want to remove a keyframe, do not press the Delete key! Doing so will delete
the contents of that keyframe on the Stage. Instead, select the keyframe and choose
Modify > Timeline > Clear Keyframe (Shift+F6). Your keyframe will be removed from
the Timeline.
You can collapse the folder by clicking the arrow just to the left of the folder name.
Expand the folder by clicking the arrow again. Be aware that if you delete a layer
folder, you delete all the layers inside that folder as well.
The X and Y values are measured on the Stage from the upper-left corner.
X begins at 0 and increases to the right, and Y begins at 0 and increases
downward. The registration point (the point from which Flash makes
measurements) for imported photos is at the upper-left corner.
3 Choose Window > Transform to open the Transform panel.
5 Select frame 12 of the photo2 layer. Now click on photo2.jpg on the Stage.
6 Use the Properties inspector and Transform panel to position and rotate the
second photo in an interesting way. Use X=200, Y=40, and a Rotate of 6 to give
it some contrast with the first photo.
P Note: When images are scaled or rotated in Flash, they may appear jagged. You can smooth
them out by double-clicking the bitmap icon in the Library panel. In the Bitmap Properties dialog
box that appears, select the Allow Smoothing option.
Drawing tools
Editing tools
Options
The red diagonal line represents no color at all for the outline.
8 Click the colored square next to the paintbucket icon, which indicates the color
of the fill, and choose a bright, cheery color such as yellow. You can click on
the color wheel at the upper right to access the Adobe Color Picker, or you can
change the Alpha percentage at the upper right, which determines the level
of transparency.
Transparency Color Picker
Current color
Color choices
9 In the Properties inspector, click the Options buttons under Tool Settings.
The Tool Settings dialog box appears.
10 For Style, choose star. For Number of Sides, enter 5, and for Star point size,
enter 0.50. Click OK.
P Note: If you remove 3 Drag the History panel slider up to the step just before your mistake. Steps
steps in the History below that point are dimmed in the History panel and are removed from the
panel and then perform
additional steps, the
project. To add a step back, move the slider back down.
removed steps will no
longer be available.
Flash automatically loops your movie in this preview mode. P Note: If you’re
working in an
If you don’t want the animation to loop when you test your movie, in Flash, ActionScript 3.0
choose File > Publish Settings, and deselect the Loop timeline option. document, Flash
publishes a SWF file
when you test your
movie. Your Properties
inspector keeps a log of
the file size, date, and
time of the most recent
SWF file published. This
helps you keep track
of your work progress
and revisions.
Review Answers
1 The Stage is the rectangular area viewers see when a movie is playing. It contains
the text, images, and video that appear on the screen. Objects that you store on the
Pasteboard outside of the Stage do not appear in the movie.
2 A frame is used to measure time on the Timeline. A keyframe is represented on the
Timeline with a circle and indicates a change in content on the Stage.
3 Because there are too many tools to display at once in the Tools panel, some tools are
grouped, and only one tool in the group is displayed. (The tool you most recently used
is the one shown.) Small triangles appear on tool icons to indicate that hidden tools are
available. To select a hidden tool, click and hold the tool icon for the tool that is shown,
and then select the hidden tool from the menu.
4 You can undo steps in Flash using the Undo command or the History panel. To undo
a single step at a time, choose Edit > Undo. To undo multiple steps at once, drag the
slider up in the History panel.
5 Choose Help > Flash Support Center to browse or search for information about using
Flash Professional and ActionScript 3.0. Use the site as the launching-off point for free
tutorials, tips, and other resources for Flash users.