Key.isDown

Setup the MovieClip

We'll start by creating a spaceship graphic we can work with. Click Insert > New Symbol:

  1. Type ship in the Name box
  2. Make certain the Type is Movie Clip
  3. Toggle the Export for ActionScript checkbox
  4. Make certain the Identifier reads ship

Click OK.

Now draw a spaceship pointing toward the right side of the stage. I'd recommend just starting with a rectangle and getting on with the ActionScript. If that's not your style, here are a two examples to inspire you:

Content on this page requires a newer version of Adobe Flash Player.

Get Adobe Flash player