In this tutorial you need:
Flash MX
Well this is about making an object moving through the scene!
Not with Motion Tween - With Actionscript(AS).
So let's begin!
Step I
Make a new Flash Document.
Create a ball with the ellipse tool.
Step II
Now this is where the fun begins!
Select you ball and make it a Movieclip(MC) by pressing F8 on your keyboard.
Name it like "Ball" or "Circle" or something(doesn't really matter).
Step III
In the bottom on your workspace it should be a tab called "Actions - Objects".
Click it.
Now the tab should "pop" up(not like a internet pop-up).
Click on your ball and write:
So time for some explanation!Code:onClipEvent(enterFrame){ * * * this._y --; }
What this does is that it enters a frame at the frame rate that the user specified(you can see it under your timelineCode:onClipEvent(enterFrame)).
Double click it to change it(i recommend 30FPS).
The code above says to the object to move to the direction Y-, and that is Up.Code:this._y --;
I'll show you how it works in Flash.
---------------------------------------------
|
As you can see, the Flash way, Y Directions is Mirrored.
I don't really get that myself, but i can live with it. :lol:
So test your movies out and have fun!
I hoped you learned something!
Til' next time! B)
Result:
(Click here if you want to see my result)