//HOW TO MOVE YOUR MC AROUND
MovieClip.prototype.moveAround = function(){
Key.addListener(this);
this.onKeyDown = function (){
this._x += Key.isDown (Key.RIGHT)*1 - Key.isDown (Key.LEFT)*1;
this._y += Key.isDown (Key.DOWN)*1 - Key.isDown (Key.UP)*1;
}
};
//HOW TO APPLY THE ABOVE
myMC.moveAround();
Brajeshwar posted this article
on Thu, Jun 6th, 2002 at 4:52 pm
Categorized under Technology








Comments Post Yours
There are 2 responses so far. You can follow any responses to this entry through the RSS feed. You can skip to the end and leave a response. Pinging is currently not allowed.
one day I’m gonna have a big brain like you!
Nice ‘lil snippet o’ code, thanks!
-bh
Post yours