AS3 Event Bubbling outside of the Scenegraph/DisplayList
Posted
by Brian Heylin
on Stack Overflow
See other posts from Stack Overflow
or by Brian Heylin
Published on 2009-03-19T13:52:11Z
Indexed on
2010/04/29
22:17 UTC
Read the original article
Hit count: 413
Hi just wondering if it is possible to take advantage of event bubbling in non display list classes in AS3.
For example in the model of an application where there is a City class that contains many Cars. What methods are there to attach an event listener to a City object and receive events that bubble up from the child Cars. To clarify The City and Car objects are not part of the display list, they are not DisplayObjects. So can bubbling be implemented outside of the display list somehow?
As far as I know, this is not possible without manually attaching event listeners to each Car object and re dispatching the event from the City object. Anyone else have a cleaner solution?
© Stack Overflow or respective owner