Reputation: 1
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
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