Flash Motion Tween Basics

Flash is Macromedia's software for creating simple animations. Flash animations are primarily used on web pages. Flash can do much more than animate, but animation is its primary function.

By far the most important thing to know about when using Flash is how to create a motion tween. Once you know how to create one, you should be able to notice how almost every Flash animation on the web consists of combinations of one or more motion tweens.

What Is a Tween?

A tween is a very simple animated movement. Usually each animation file will have a few of them, one on top of another or one right after another. For example: text zooming up then fading away on top of a rotating shape that is moving sideways. The text zooming up would be one tween and the shape rotating and moving would be another tween.

Flash has two types of tweens: motion tweens and shape tweens. Motion tweens provide the smallest file sizes but are less flexible than shape tweens. Shape tweens can do the same animated movements as motion tweens but they can also "morph", meaning create drastic shape changes. Motion tweens are limited in how much they can change the shape of an object.

Keep Your Flash Files Small!

The following two suggestions are made to help you keep file sizes as small as possible (in KB). Keeping files small is one of your most important objectives when building a web page.

  1. Use motion tweens. They are better to use than shape tweens or frame-by-frame animation where each frame has its own objects.
  2. Avoid using bitmap images (photos) in your Flash animations.

The Origin of Tweening

The origin of the word "tween" comes from the old animation industry, in the days before computers, when animation was drawn exclusively by hand. Every individual second of animation required as many as 24 separate drawings.

These hand colored drawings would then be shot on strips of film. When the individual frames on such a film strip are displayed at sufficiently rapid speed (usually 18 or 24 images per second), viewers' brains automatically tie the images together to create the illusion of smooth motion.

There were two main types of animation artists who made these drawings. The better artists were the ones who drew the keyframes, which were the most important positions of the characters. For example, the beginning and end positions of a pitcher throwing a ball. Other artists would then make all the drawings for the frames between the keyframes. This was called tweening.
Top

Flash Tweening: Symbols and Instances

Flash uses a similar paradigm, except that in Flash the keyframes usually represent changes of direction, size, and similar attributes of an object rather than exclusively referring to important changes in an object's shape.

Each motion tween requires the use of a representation of the object that one wishes to animate. The object first needs to be saved as a symbol. Symbols are stored in a Flash Library. Every file has its own Library, but Libraries can be shared between Flash files.

Every time a symbol is to be used in an animation, instances of that symbol are brought on to the Flash Stage (the background) from the Library. An instance is a representation of a symbol. An instance remains dependent on the symbol in the Library for its characteristics. If the symbol in the Library is changed, then all instances of the symbol will reflect that change.

An instance of the same symbol needs to be in each keyframe of a motion tween animation. A keyframe needs to exist whenever that object changes its direction or some other characteristic (such as its color, proportions, or size). Every motion tween needs to have its own layer in a Flash file.

Shape tweens do not use symbols.
Top

Basic Rules of Motion Tweens

Overview of Creating a Motion Tween

If you want to become better at Flash animation it is imperative that you become adept at making motion tweens! Following is a summary of how to create a typical individual motion tween. Don't do these now, just read them:

  1. Create an object (for example, a circle).
  2. Select it.
  3. Convert it to a symbol.
  4. Put one "instance" of the symbol in a keyframe.
  5. Create another keyframe where you want the animation to change or end.
  6. Put a second "instance" of the same symbol in that other keyframe in the same layer.
  7. Right click anywhere in the layer between the keyframes and select Create Motion Tween.
  8. Press the Enter key on your keyboard to preview the animation.

Top

Create a Simple Motion Tween

Following are the steps for making a simple motion tween of a circle going from left to right and back again. Please be sure to carefully follow the instructions step by step. You may want to print them out to make it easier for you to do the work while you read the instructions.

  1. Download: Flash Professional 8 (30 day free trial). Click on the option: "Try". Do NOT download any other programs or the Studio package at this time. Only download Flash.
  2. Start up Flash.
  3. In the File menu select New...
  4. In the New Document dialog box, select Flash Document then click on OK.
  5. Use the menu as follows: View -> Magnification -> Show Frame
  6. In the Tools panel, which should be visible running vertically along the left side, select the Oval tool.
  7. In the empty white area click and hold down the mouse button then drag to form a medium size circle that is about 1/4 the width of the white area. Don't worry about where you put it, we'll move it later.
  8. Select the Selection tool, which is the black arrow in the top left corner of the Tools panel, but don't do anything with it yet. I want you to select it now so that you don't inadvertently make more little circles.
  9. Next, press and release Ctrl-A (Select All) on your keyboard to be sure you have the entire shape selected.
  10. Then use the menu: Modify -> Convert to Symbol.
  11. In the Convert to Symbol dialog box:
  12. You have now created a symbol, which is stored in the Library. You can see it here:
  13. Position the blue circle on the left side of the white background area, but no part of it should be in the gray area because anything not in the white area will not be seen in the final file.
  14. Next, we will use the Timeline panel, which should be at the top.
  15. Click in the gray frame under the "20" on the time line to select frame 20 on Layer 1. The frame will turn blue to indicate that it is selected.
         
  16. Then, RIGHT click on that frame and select Insert Keyframe from the menu that appears:
         
  17. Adding the keyframe did several things:
  18. Now, right click anywhere on the layer between the keyframes.
         
  19. From the menu that appears, select Create Motion Tween.
  20. The color between the keyframes should now be a light violet and there should be an arrow pointing from left to right.
  21. Move the pink Playhead to frame 10 by clicking and dragging on it.
  22. Make sure that you have the black arrow tool (the Pointer tool) selected.
  23. Click and drag the blue circle to the right side of the white background area.
  24. Press the Enter key on your keyboard and you ought to see the animation.

Congratulations, you have now made a motion tween, the most important thing to know how to do in Flash (IMHO). Perhaps you can now see that motion tweens such as this can be used to create more complex overall animations.

Online students, please send me your Flash .fla file or the .swf file (which I'd prefer if you can find it, but don't worry about it if you can't). Please name it MTN1_yourlastname.

Top

© 2005 Dan Hitchcock Vaughan and its licensors. All rights reserved.