function movecam() { if (Key.isDown(Key.LEFT)) { camera._x += 3; } if (Key.isDown(Key.RIGHT)) { camera._x -= 3; } } this.onEnterFrame = movecam;