Fire multiple bullets but when i put the looping i get error (access of undefined property shot)
stage.addEventListener(Event.ENTER_FRAME,looping);
function looping (event:Event):void
{
shot.x +=10;
}
fire_btn.addEventListener(MouseEvent.CLICK,fire);
function fire(MouseEvent:Event):void
{
var shot:bullet = new bullet();
this.addChild(shot);
shot.x = player.x;
shot.y = player.y;
}
