onClipEvent (enterFrame) { if (Key.isDown(Key.RIGHT)) { _x += 5; } } onClipEvent (enterFrame) { if (Key.isDown(Key.LEFT)) { _x -= 5; } } onClipEvent (enterFrame) { if (Key.isDown(Key.UP)) { _y -= 5; } if (this._x>=550) { this._x = 545; } if (this._x<=10) { this._x = 15; } }