this will get you moving…
onClipEvent (enterFrame) {
if (key.isDown(key.RIGHT)) {
this._x += 5;
}
if (key.isDown(key.LEFT)) {
this._x -= 5;
}
}
plus i’ve attached a game that i made a while ago, just like you are making now…you should take a look at it…