The example above is the Flash Orbiting ball. This tutorial
will lead you through the process to create an object that flies around text,
a logo or object, anything you choose.
First start a new movie and create or import an object.
I created a ball right in Flash. First rename layer one ball by double clicking
the text Layer 1 and then typing "Ball." Create the ball, then
select it using the arrow tool, then convert it to a symbol (Insert>Convert
to Symbol). Name it Ball and select graphic as the behavior.
Left click on a key frame somewhere down the timeline (I chose frame 20)
and right click in that keyframe and select Insert Keyframe from the pop up
menu. NOTE: the more frames in-between the first keyframe and the last keyframe
indicate the speed of the object Orbiting. For example more frames slower
speed - less frames faster speed.
Next, left click the first keyframe and open your Frames Pallette (Window>Panel>Frames).
Select Motion from the Tweening drop-down menu. Check the three boxes labeled
Orient to Path, Synchronize, and Snap. A checkmark should appear in all three
checkboxes.
Next, create a motion guide for that object. You can do this by right clicking
on the layer named ball and choose add Motion Guide from the pop up menu.
Select the first keyframe of the motion guide layer (Guide:ball), then choose
the circle shape from the tools menu and make the fill color empty and the
outline anycolor you like. Use the tool to draw a circle and keep in mind
that this is the path your object or ball will follow.
In the above picture I drew a circle and skewed it using this button to
make it appear as you see it. Then I chose the pencil button and
drew two lines very close to each other so as to break the solid line of the
circle I drew, follow the example below. Select the part of the circle that
lies between the two pencil lines you drew and delete it. Now cut the rest
of the pencil lines you drew in until only the broken circle remains.
Now select the first keyframe of the ball layer and move the ball or object
over one end of the broken circle. Next, Choose the last keyframe of the ball
layer and move the ball or object over the other end of the broken circle.
Test your movie by holding down the Ctrl key and pressing the Enter key.
At this point you may need to move the ball in the first and last keyframe
of the ball layer to position it correctly over the ends of the broken circle
motion guide. When it works the ball or object will follow the broken circle
from start to finish.
Double click the left mouse button in the last keyframe of the motion guide
layer to bring up the actions box. From the pop up menu click the + button
in the top left hand corner and choose goto from the drop down menu.
The script gotoAndPlay (1); should appear in the left side of the box.
Select the Add a layer button
and call it name, select the first keyframe of that layer and insert your
text. Make sure that the layer is under the ball layer. If not, drag the layer
to the bottom by left clicking on the layer and dragging it down to the bottom
of the layer pallette. Use the text tool button
to insert your text or even draw another object import a logo. Advanced users
may want to insert a movie clip symbol. For this example I use "I Love
Flash!!!!"
Give the name a shadow effect by choosing edit from the main menu then Duplicate
from the drop down menu. So now I have 2 instances of the same text, then
all I do is change the color of the text in the back and align it behind the
first.
Now insert a keyframe by right clicking in the last keyframe on the name
layer and choosing insert keyframe from the pop up menu. The last keyframe
here is number 20.
Lets look at the frames and layers again before we publish our 3D animation.
You should now have 3 layers:
The ball
The motion guide
The name
Next, right click on the first keyframe of the name layer and choose copy
frames from the pop up menu. Then add a new layer and right click in that
new layers first keyframe and choose paste frames from the pop up menu.
Drag that layer to the top by left clicking and holding down the mouse button
while dragging that layer using the mouse cursor, to the top.
What essentially is happening here is the ball is going around and around.
The text is some times in front of the ball and some times in back of the ball,
that's why we have a name layer on top and on bottom. The trick is to have the
top name layer visable over the ball only when the ball is on the right side
of the circle guide. So, the ball appears to be behind the name. Notice where
the ball is in the position shown above, This is when we want the top layer
called name to be visable so it will cover the ball.
Now, left click and hold down the mouse button in the top layers first keyframe
and drag it to the third frame. This will move the first keyframe to frame
number 3. Then place your mouse cursor over frame 20 in the top layer called
name and left click, holding down the mouse button and drag the cursor over
to frame number 13 that's seven frames highlighted. Finally right click in
any of those selected frames and choose delete frames from the pop up menu
and it should look like above.