In this assignment, we will see an example of applying a path for the graphic
to follow as it tweens.
Here are the steps for creating a path for a tween to follow:
1. Create a symbol and apply a tween
2. Create a guide layer
3. Drag the symbol to the guide layer (both at the start and end)
Create a Basic Motion Tween:
Double-click on Layer 1 and name it Moon.
Click in Frame 1 of the Moon layer.
Draw a small moon with no stroke (i.e., outline).
Click on the moon and select Insert - Convert to Symbol.
Name: moon
Behavior: Graphic
In Layer 1: Add a keyframe to Frame 20.
(Click in Frame 20 - Insert - Keyframe)
In frame 20 move the moon to another location on the stage.
Click on any frame in between frame 1 and 20 and then right click and select Create Motion Tween.
Test your scene to be sure the tween is working properly.
At this point the moon should be moving in a linear fashion across the screen.
Create a Guide Layer and Path:
Select the Moon layer and right click and select Add Motion Guide or click on the motion guide button (See the Flash screen at the bottom of this page for the position of the motion guide button.)
Click on the Motion Guide Layer.
Draw a large oval with NO fill.
(This will be the "path." You will not see it in the Flash movie.)
Erase a small piece of the oval on the left side.
Connect the Moon to the Guide :
Click in Frame 1 of the Moon layer.
Drag the moon symbol to the end of line used for the path. The very center of the moon must be centered on the end of the path.
Click in Frame 20 of the Moon layer and center the moon on the other end of the path.
Test your movie: Control - Test Movie.
You should see a moon following an invisible oval path.
To Create a Planet:
Click on the Moon layer and insert a new layer.
Double-click on the new layer and name it planet.
Click on the planet layer.
Draw a large circle with no stroke in the center of the oval path, covering the back part of the pathway and leaving the front part visible.
Test your movie again.
(Control - Test Movie)
You should see a moon circling a planet.