Groups | Blog | Home
all groups > flash actionscript > march 2006 >

flash actionscript : Moving Objects on a Stage with actionscript???



dmitryseliv
3/28/2006 9:10:38 PM
Hi!

I need to create 4 different animations.
And I wonder if the any easy way to make it happened with actionscript.
Basically there are 3 cars on a stage they moving from different directions.
First one yields second and then passing to incoming traffic. If you do it
regular way and use Tween Motion you have to it in small increments so it looks
more smooth specially because road is not strait and you need change angle of
the car as well.


Appriciate Any help.

Best, DS:confused;
blemmo
3/28/2006 10:58:08 PM
Graphic objects in Flash have a _x and _y property that you can change with AS,
e.g.
car1._x -= 10
would change the position of 'car1' (probably an MC) 10 pixels to the right.
All you have to do is give your MCs instance names to adress them with AS.

greets,
blemmo
AddThis Social Bookmark Button