Mailing List
Home
Flash Pro
Extending Flash
Flash Macromedia Developer
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
EventDispatcher 1 frame delay

EventDispatcher 1 frame delay

2004-02-17       - By Muzak

 Back
Reply:     1     2     3     4     5     6     7     8     9     10     >>  

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)