Arjun P.B
Arjun P.B

Reputation: 1

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

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.

Upvotes: 0

Views: 129

Answers (1)

Fennekin
Fennekin

Reputation: 216

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

Upvotes: 1

Related Questions