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 Tatsuo Kato

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

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)