How can I move an object in Macromedia Flash MX by incrementing its coordinates using ActionScript?

166 Views Asked by At

I want to programatically move an object by incrementing its coordinates through action script. I am relatively new to programming in general. So i want to understand it at a grassroot level.

1

There are 1 best solutions below

0
On

Its simple in as2

click on the shape drawing

then press F8

select movieclip and press ok

double click the object

in the first frame enter the following

this.onEnterFrame = function(){
  _x += 5;
  _y += 5;
};

press ctrl+ enter to test