Key.isDown

else if (Key.DOWN)

Now let's get the ship to move down when the down key is down. Sorry, couldn't resist.

ySpeedPlus5

Now we tell the program what we want it to do... move the ship "down". ship._y should be increasing now, so we'll use ship._y+=5;

This is what your Actions window should look like now:

ySpeedPlus5

That should do it. Click on the ship, then try it out:

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

Get Adobe Flash player