Look into Event bubbling
http://www.google.com/search?hl=en&q=AS3+event+bubbling&meta=
----- Original Message -----
From: "Lehr, Ross (N-SGIS)" <[email protected]>
To: "Flash Coders List" <[email protected]>
Sent: Thursday, February 05, 2009 8:14 PM
Subject: RE: [Flashcoders] Best way to access my main class?
This brings up a question I had about events. Is there a way to send an event all the way to the document class, no matter where
it's been dispatched from? For instance, I have a document class that creates a "menu" class, which creates several "icon button"
classes. I want the document class to be able to receive the event dispatched from the "icon button". Currently, the only way I
know how to do it is have the "icon button" send it to the "menu" and then the "menu" send it to the document. So, my question
is, can the document class receive an event directly sent from the "icon button"?
Thanks,
Ross
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders