Creating Animation with Flash
by Prof. Jim Lengel, Boston University College of Communication
Animation is a powerful tool for communication and education. It can illustrate
a complex process, entertain an audience, or introduce a new idea. With the
arrival of Macromedia Flash, animation has appeared more and more on the Web
and in a variety of programs for teaching and learning.
Animation need not be of the Disney variety, with lifelike characters, or of
the television variety with spinning logos and shiny surfaces. In fact these
"flashy" animations often contain little content of importance. More
useful animation might show the formation of a thunderstorm in a weather front
over time, or the growth of U.S. territory in the 19th century, or a schematic
of the plot of a novel. These kinds of animation are more useful in school,
and easier to create for the student or teacher who is not necessarily an artist.
This article gets you started creating a simple animation with Flash. If you
don't have a copy of the program, you can download a trial version at Macromedia's
web site at http://www.macromedia.com .
Creating Animation with Flash
Flash provides tools for creating text and graphics for your animation, and
for moving these around. You can also import JPEG, GIF, or PICT images into
Flash, and animate them as well.
Set up the Stage.
Open Flash. Set your Flash project to a size appropriate to the animation you
want to build. Do this by choosing Modify -- Movie from the menubar, and then
entering the appropriate numbers into the boxes. If your animation needs a background
color, choose it now. You will see the stage change size, with the color you
have chosen.
Create your Objects.
You must import any photographic or bitmap images that you need for your animation.
Before you import them, set them to the proper size and resolution with a photo editing program like one of the Adobe programs like Photoshop or Photoshop LE .
Use a resolution of 72 pixels per inch, and keep the images within the size
limits of your stage. To import a bitmap image, choose File -- Import;
from the Flash menubar, and you will see your images appear on the Stage.
You should create within Flash any text or graphic elements you need for your
animation. Choose a tool from Flash's tool palette, choose line and fill
colors, then draw (or type, if it iss text) the object you need onto the
Stage.
Animate the Objects.
You can animate several aspects of an object:
- location: move the object from one place on the Stage to another.
- transparency: make the object fade in and out of the scene.
- rotation: make the object spin.
- size: make the object get bigger and smaller.
And you can combine any and all of these. Text, images, and graphics
can all be animated in these ways.
Animating Location.
When you imported or created the object, it went into frame 1 in the Timeline.
This will be the first frame, the beginning point of the animation. To make
the object animate, you need to create several more frames, and a last keyframe,
then move the object in the keyframe to the ending location of the animation,
then create the in-between frames. Follow these steps:
- Create or place the object on the Stage, where you want its animation to
start. It should show up in frame 1 on the timeline.
- Choose Insert -- Convert to Symbol from the menubar, and convert the object
to a Graphic symbol.
- Create a keyframe in frame 15, by selecting frame 15 in the timeline, and
then choosing Insert -- Keyframe from the menubar.
- With the keyframe (frame 15) selected in the timeline, choose the black
arrow tool, and then move the object to where you want it to end its animation.
- In the timeline, select frame 1.
- Choose Insert -- Motion Tween from the menubar.
- Use the Control menu to rewind, and then play the animation.
- Watch the object move across the Stage.
Animating Transparency
In Flash, the transparency of an object is called its Alpha value.
An Alpha of zero is invisible; and Alpha of 100 is fully opaque, and an Alpha
of 50 is halfway there -- you can see through it. To gradually change the transparency
from opaque to transparent, follow these steps:
- Create or place the object on the stage. It should show up in frame 1 on
the timeline.
- Choose Insert -- Convert to Symbol from the menubar, and convert the object
to a Graphic symbol.
- Create a keyframe in frame 15, by selecting frame 15 in the timeline, and
then choosing Insert -- Keyframe from the menubar.
- With the keyframe (frame 15) selected in the timeline, select the object
.
- Open the Effects window by choosing Window -- Panels -- Effect.
- From the popup menu, choose Alpha.
- Use the slider to set the Alpha to the ending value (for example, 5%).
- In the timeline, select frame 1.
- Choose Insert -- Motion Tween from the menubar.
- Use the Control menu to rewind, and then play the animation.
- Watch as the object disappears.
Animating Rotation
Any object can be rotated, and rotation is expressed in degrees. 360 degrees
makes a complete circle. Animating the rotation of an object is very much like
animating its transparency. Follow these steps:
- Create or place the object on the stage. It should show up in frame 1 on
the timeline.
- Choose Insert -- Convert to Symbol from the menubar, and convert the object
to a Graphic symbol.
- Create a keyframe in frame 15, by selecting frame 15 in the timeline, and
then choosing Insert -- Keyframe from the menubar.
- With the keyframe (frame 15) selected in the timeline, select the object.
- Open the Transform window by choosing Window -- Panels -- Transform.
- In the transform window, enter a new number for the rotation (for example,
45 degrees).
- In the timeline, select frames 1.
- Choose Insert -- Motion Tween from the menubar.
- Use the Control menu to rewind, and then play the animation.
- You should see the object rotate smoothly as the frames play.
Animating Size
You can shrink or stretch an object over time to create a size animation. Its
very much the same as creating a rotation animation. Follow these steps:
- Create or place the object on the stage. It should show up in frame 1 on
the timeline.
- Choose Insert -- Convert to Symbol from the menubar, and convert the object
to a Graphic symbol.
- Create a keyframe in frame 15, by selecting frame 15 in the timeline, and
then choosing Insert -- Keyframe from the menubar.
- With the keyframe (frame 15) selected in the timeline, select the object.
- Open the Transform window by choosing Window -- Panels -- Transform.
- In the transform window, enter a new number for the horizontal and vertical
size (150% to make it larger, 50% to make it smaller.)
- In the timeline, select frames 1.
- Choose Insert -- Motion Tween from the menubar.
- Use the Control menu to rewind, and then play the animation.
- You should see the object shrink or stretch smoothly as the frames play.
Combined Effects
By the same method, you can create an object that moves across the screen as
it disappears, or performs all four types of animation at once; just
apply all the settings to the last frame, one after the other, and then create
the motion tween.
Multiple Objects
You can animate several objects at the same time, in different directions,
by adding them to the Stage and then animating them. Just make sure that you
select only the object that you want to animate as you set the transformation
parameters. It's easier to keep track of these if you put each object
in its own layer.
Multiple Scenes
To create a new Scene, choose Insert -- Scene from the menubar. Create the
second scene as you created the first. This second scene will play as soon as
the first one is finished. To test the entire movie, choose Control -- Test
Movie from the menubar.
Animating Along A Path
To move an object along a path that is not a straight line, you simply draw
the path with the pencil tool in a special invisible layer called a Motion
Guide. Open the location animation that you created earlier, and follow
these steps:
- Select the layer with the animated object in it.
- Choose Insert -- Motion Guide from the menubar.
- Select the pencil tool, and draw the animation path. Make sure you start
the path at the exact center of the object. (The pencil tool has options for
different types of lines; try them and see the results.)
- Use the Control menu to rewind and see the animation.
Publishing Your Animation
When you have created and tested your animation, and it's ready to be published,
choose Publish from the File menu. This will create a Web page with the Flash
animation embedded in it. When you open the Web page with your browser, you
will see the animation play. The animation file will have a filename extension
of .swf (that stands for Shockwave Flash.) If this animation is to be part of
a Web site, it can be copied to a Web server and be accessible to the public
from there. If the animation is to be distributed on disk or CD-ROM, it can
be copied to one of those formats.
No matter which way you publish it, viewers will need the Flash Player installed
on their computers in order to see your animation. They can download this player
for free at the Macromedia Web site at http://www.macromedia.com .
View Teaching with Technology Archive

|