# Move an MC around

> Markdown version of https://brajeshwar.com/2002/move-an-mc-around/ — 2002-06-06

```as
// How to move your MovieClip 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;
 }
};
```

```as
// How to apply
myMC.moveAround();
```
