Internet / Software Applications

Macromedia Flash MX 2004 Course

Using Motion Guide Layers

You can use a special layer, called a motion guide layer, to plot a course an image will follow during the animation:

  1. Start with the motion tween you created earlier, or open a new Flash document and create a motion tween. You can create the motion tween before or after you create the guide layer, as long as you begin with a starting graphic.

  1. Select Layer 1 by clicking on it in the Timeline.

  1. At the bottom of the Timeline, click the Insert Guide Layer button.
  2. Click the Pencil tool on the Tools panel. Under Options, select Smooth.

  1. On the Stage, draw the path you want the object in the animation to follow:

The path won’t appear in the final animation.

  1. Click on the first keyframe of Layer 1 to select the graphic. Move it to the end of the path you just drew. Flash displays a transparent circle in the middle of the graphic, which snaps to the beginning of the path when you move near it.

  1. Select the last keyframe on the same layer and move the graphic to the end of the path you drew. Snap it in place:

  1. Add a stop action to the end of the movie, as you did earlier, by inserting a new layer called “Actions” and a keyframe in the frame that corresponds to the end of the animation (for us, frame 20). With the keyframe on the Actions layer selected, open the Actions panel and type stop();.

  1. Test the movie. The object should move along the invisible path you drew, stopping at the end.