As long as the component are oon the display list and the event bubbles 
property is set to true you can listen for the event in the main app. However 
you can catch the event in every component nested in the main app which parents 
the component that dispatched the event...

THT,
C




________________________________
From: jdizowat <[email protected]>
To: [email protected]
Sent: Friday, August 14, 2009 6:48:52 PM
Subject: [flexcoders] Event Best Practices

   
Super Noob Question Incoming - 

So if I my application looks like the following -

<mx:app>
<mx:customComponent >
<mx:customComponent />
</mx:customComponen t>
</mx:app>

That deepest custom component dispatches an event and I would like that event 
to make it to the application level.  Is that even normal to have components 
that nested? 

Thanks for any insight,
Jason


   


      

Reply via email to