Using Motion Tweening to Move a Movie Clip Symbol

Movie Clip symbols are very powerful but a bit difficult to understand. They are something akin to animations that exist within your animation.

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.

I've also put play and pause control buttons in view that will control the side to side motion that you will be creating. These buttons are on a locked layer so that you won't inadvertently change them. They will work after you create your motion tweens as described below.

The actions that you will be creating are:

Note that a Flash animation will run continuously, again and again, by default:

Please take 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:
    motionTweenChomperCmplt.html
  2. Next, download this Flash file to disk (PC users, right-click; Mac users, control-click):
    motionTweenChomper.fla
  3. Open the file in Flash.
  4. Set your view so that you see the entire background:
  5. Find the Chomper symbol in the file's Library and click on its name to select it as follows:
  6. WARNING! At no time do you want to inadvertently enter the symbol editing mode.
  7. Select the layer named Chomper by clicking on it. The layer should turn blue.
  8. 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 (the white 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.
  9. 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 (see illustration).
  10. You should be on frame 20. This will be the last frame of your animation. When your Flash animation is displayed in a browser, it will automatically start again at frame 1.
  11. Make sure that the Chomper has a blue rectangle around him. If not, click on him with the Selection (black arrow) tool.
  12. Use the Modify menu in Flash as follows to turn him:
    Modify -> Transform -> Flip Horizontal
  13. In the Timeline panel, in the Chomper layer, click on frame 9 to select it.
  14. Put a keyframe at frame 9 by pressing F6 on your keyboard.
  15. Move the Chomper character slightly to the right of center.
  16. Next, click on frame 10 in the Timeline panel on the Chomper layer.
  17. Put a key frame at frame 10 by pressing F6 on your keyboard.
  18. Make sure that the Chomper has a blue rectangle around him. If not, click on him with the Selection (black arrow) tool.
  19. Use the menu in Flash as follows:
    Modify -> Transform -> Flip Horizontal
  20. Select frame 1 on the Chomper layer in the Timeline panel by clicking under the "1".
  21. Press on Shift on the keyboard and then click on frame 20.
  22. Right-click on any of the selected frames and select Create Motion Tween from the menu that appears.
  23. That should complete the work.
  24. Now, using the File menu, select Save As and give the new file the name: chomper_yourLastName.fla
  25. Press Ctrl + Enter to preview the animation in the Flash Player (which is also what a browser uses to view the animation).
  26. Please email me as an attached file your completed chomper_yourLastName.fla file. Or, if you can find it and you're pretty sure you did the exercise properly, send the chomper_yourLastName.swf file (notice the different file extension at the end) which you will probably find in the same folder as the .fla file.

That's all folks!

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