  | |  | EventDispatcher 1 frame delay | EventDispatcher 1 frame delay
2004-02-17 - By Tatsuo Kato
Back hm, I still don 't get your point, Muzak. Neither does Phil, it seems.
It doesn 't take a frame or an interval for an object initialized with
mx.events.EventDispatcher to be able to dispatch an event.
It only needs a fact that a listener is registered before dispatching.
And it works for me wherever it 's written, frame1 of _root or the
component or wherever.
In order for it to work, it just needs a listener having been registered
before dispatching.
Cheers,
--
Tatsuo Kato
http://tatsuokato.com
-- -- Original Message -- --
From: "Muzak " <p.ginneberge@(protected) >
To: <flashcoders@(protected) >
Sent: Wednesday, February 18, 2004 3:27 AM
Subject: Re: [Flashcoders] EventDispatcher 1 frame delay
> 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:104520
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)
|
|
 |