Fire Weapons with Key.addListener
Create the "fire" Function
Create a new function called fire, which we'll use to attach a laser each time the space bar is pressed:
Increment a variable called lCount (that's the letter "l" for "laser", not the number "1") and attach an instance of laser:
Create a MovieClip label called laser we can target:
Set laser._x equal to ship._x, and do the same with the Y positioning:
Oh, and let's not forget to declare lCount: