Home Tutorials Forums Articles Blogs Movies Library Employment Press
Prev Previous Post   Next Post Next
Old 12-25-2010, 08:36 AM   #1
teambuddies
Registered User
 
Join Date: Dec 2010
Posts: 8
Default [AS3] Advance function in event listener

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...
teambuddies is offline   Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:49 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.