I want to know if there is a way to use adavance function declaration in add event listener
Ex:
normally in addeventlistener we use this.
Code:
army.addEventListener (Event.ENTER_FRAME, movearmy);
function movearmy(event:Event):void{
//the code
}
but i want to use the advance function
ex:
Code:
function movearmy (event:Event, Object:MovieClip){
//the code
}
i want to place army in the object. but how to use it in addEventListener?
I use this:
Code:
army.addEventListener (Event.ENTER_FRAME, movearmy(, army));
but it give error.
Srr for the english...