[flexcoders] addEventListener and additional arguments?

2007-02-13 Thread darylgmyers
Is there a way to use the addEventListener method and pass additional 
arguments along with the event?  I have a form where I must create the 
form objects dynamically so I need to use addEventListener for 
formatting, etc.  I can not use inline mxml to add the listeners.



RE: [flexcoders] addEventListener and additional arguments?

2007-02-13 Thread Tracy Spratt
You'll need to extend/subclass Event to make a custom event class.  This
is easier than it sounds, and there are examples in the docs, and I have
one on cflex.net.

 

Are you sure you need this though?  Event gives you target which may
have the data you need.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of darylgmyers
Sent: Tuesday, February 13, 2007 4:42 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] addEventListener and additional arguments?

 

Is there a way to use the addEventListener method and pass additional 
arguments along with the event? I have a form where I must create the 
form objects dynamically so I need to use addEventListener for 
formatting, etc. I can not use inline mxml to add the listeners.