Hello Kevin,

  Thank you Kevin, you were correct here!

  I rely on Delegate class here, so I will take your advice and I will
do it your way.

Friday, November 11, 2005, 5:37:16 PM, you wrote:
KL> The event broadcaster keeps a map of event types and the event listener.  By
KL> creating a new Delegate object everytime you are creating a new Listener.
KL> So the broadcaster can no find the previous one to remove.  If you want to
KL> keep the Delegate ref stuff going.  Try this:

KL> class LogonWindowViewHelper extends ViewHelper {
        
KL>   private var keyPressDelegate:Delegate;

KL>   public function LogonWindowViewHelper() {
KL>     super();
KL>     keyPressDelegate = Delegate.create(this, this.enterKeyPressed);
KL>   }       



-- 
Best regards,
 Andriy                            mailto:[EMAIL PROTECTED]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to