Using Motion Tweening to Animate a Movie Clip Symbol

Prerequisite: Flash Motion Tween Basics

A Flash Movie Clip symbol is very powerful but a bit difficult to understand. It is an animation that exists within the main animation that is on the Timeline. Movie Clip Symbols run independently from the main Timeline. They have their own Timeline.

In this exercise you will be using a file that has a Movie Clip Symbol already prepared for you in the file's Library. The symbol is of a character I call the Chomper. You will be creating a motion tween to move him from one side of the background to the other side, and then back again, creating the impression that he is pacing back and forth. All the while, the Chomper will be gnashing his teeth up and down.

The action of the teeth gnashing is the animation that is built into the Movie Clip symbol. The Chomper's movement from left to right and back again, that you will be creating, is separate from the gnashing and uses Flash's standard timeline.

I've also put play and pause control buttons in. These will control the sideways motion that you will be creating. The buttons are on a locked layer so that you will not inadvertently change them. They will work even though the layers are locked.

The action that you will create will be :

Note that Flash runs continuously, again and again, by default:

Please do the following steps to make it happen:

  1. First, view the following file in your browser for a preview of what you will be creating:
    The Chomper - completed
  2. Next, dowload this file by right clicking on it and selecting the save option:
    motionTweenChomper.fla
  3. Set your view so that you see the entire background:
  4. Find the Chomper symbol in the file's Library and click on its name to select it as follows:
  5. WARNING! At no time do you want to inadvertently enter the symbol editing mode.
  6. Select the layer named Chomper by clicking on it. The layer should turn blue.
  7. Drag an instance of the Chomper out of the Library by:
    1. Click and hold down on your mouse button on the picture of the Chomper in the Library.
    2. Then, keeping your finger pressed down on the mouse, move your mouse over to the Stage area.
    3. Let go of your mouse button when you're over the Stage.
    4. This will create an instance of the Chomper symbol there.
  8. Using the Selection tool (the black arrow at the top of the Tools panel) position the instance of the Chomper about half way up in the Stage area, slightly to the left of the center of the Stage.
  9. Select frame 20 on the Chomper layer.
  10. Note Mac users, re: the illustration below, Ctrl-click on frame 20 instead of using F6.
  11. You should now be on frame 20. If you are not, bring the pink playhead there.
  12. Make sure that the Chomper has a blue rectangle around him. If not, click on him with the Selection (black arrow) tool.
  13. Use the Modify menu in Flash as follows to turn him:
    Modify -> Transform -> Flip Horizontal
  14. Click on frame 9 in the Timeline panel on the Chomper layer to select frame 9.
  15. Put a keyframe at frame 9 by pressing F6 on your keyboard.
  16. Move the Chomper character to the right of center so that he is as equidistant from the right edge as he was from the left edge in frame 1 (or frame 20, which ought to be the same as frame 1).
  17. Click on frame 10 in the Timeline panel on the Chomper layer.
  18. Put a key frame at frame 10 by pressing F6 on your keyboard.
  19. You should be on frame 10.
  20. Make sure that the Chomper has a blue rectangle around him. If not, click on him with the Selection (black arrow) tool.
  21. Use the menu in Flash as follows:
    Modify -> Transform -> Flip Horizontal
  22. Select frame 1 on the Chomper layer in the Timeline panel by clicking under the "1".
  23. Press on Shift on the keyboard and then click on frame 20.
  24. Right-click between any of the keyframes and select Create Motion Tween from the menu that appears.
  25. A light purple background with an arrow pointing to the right ought to appear.
  26. That should do it.
  27. Press Ctrl + Enter to preview the animation (Mac users, Command + Enter).

Please save the file as:

chomper_yourlastname

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).

That's all folks!

 

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