Forget about event bubbing and event capture (which is basically
"downward bubbling") -- you don't need them for this. Any component can
dispatch an event which any other component can listen for. You want
your subsubcomponent to listen to an event dispatched by your
application after the file has been loaded. So the subsubcomponent would
do
application.addEventListener("fileLoaded", fileLoadedHandler);
and your application would do
dispatchEvent(new Event("fileLoaded"));
- Gordon
________________________________
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Sherif Abdou
Sent: Friday, August 31, 2007 8:16 AM
To: [email protected]
Subject: Re: [flexcoders] Can You bubble Downward or dispatch events
into other components?
so is that a no?
----- Original Message ----
From: Alex Harui <[EMAIL PROTECTED]>
To: [email protected]
Sent: Thursday, August 30, 2007 7:00:35 PM
Subject: RE: [flexcoders] Can You bubble Downward or dispatch events
into other components?
Subcomponent usually listens to parent for events.
________________________________
From: [EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] ups.com ]
On Behalf Of sherif626
Sent: Thursday, August 30, 2007 2:18 PM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] Can You bubble Downward or dispatch events into
other components?
i am still new to flex so i was wondering if You can bubble Downward
or dispatch events into other components?
ex:
--my main application
-SubComponent
--Sub SubComponent
now there is a file that i need to load up from the main application
but after it gets loaded i would like to tell the Sub SubComponent
that the file is done loading and that it can be used. I know i can
do that with getter/setters but events would be much better i would
think.
Bubbling would work if it was the other way. Thanks
________________________________
Got a little couch potato?
Check out fun summer activities for kids.
<http://us.rd.yahoo.com/evt=48248/*http://search.yahoo.com/search?fr=oni
_on_mail&p=summer+activities+for+kids&cs=bz>