Fire Weapons with Key.addListener

Create the Laser MovieClip

We'll be piggy-backing off the previous tutorial.

The first thing we'll do is create a "fire" function that attaches a laser MovieClip to the stage. We'll worry about calling that function later.

Start by creating the laser MovieClip:

Now we'll draw a little laser beam on the stage:

That's it! Return to the main stage and bring up the Actions window.