  | |  | EventDispatcher 1 frame delay | EventDispatcher 1 frame delay
2004-02-17 - By Muzak
Back Sorry about the confusion.
I 'm not trying to dispatch an event in the constructor.
That was just some sample code (with the 'init ' event) to show that it does take a frame for the EventDispatcher to work properly.
And yes, it makes perfect sense that nothing happens before a listener is registered.
The thing is, you can 't tell when a listener has been registered... (not sure if that makes any sense tho).
And in case you ever have to dispatch an event in the 'first frame ' of a component (or a Class), it won 't work.
regards,
Muzak
-- -- Original Message -- --
From: "Tatsuo Kato " <studio@(protected) >
To: <flashcoders@(protected) >
Sent: Tuesday, February 17, 2004 7:02 PM
Subject: Re: [Flashcoders] EventDispatcher 1 frame delay
> Muzak,
>
> Maybe I 'm missing something but I 'm confused as to what you are up to. ;)
> Why do you have to dispatch an event in the constructor of the event
> dispatcher object?
>
> It makes perfect sense that nothing happens when you dispatch an event
> before the listener is registered as a listener.
>
> Cheers,
> --
> Tatsuo Kato
> http://tatsuokato.com
>
>
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:104515
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)
|
|
 |