AS3 Event Bubbling outside of the Scenegraph/DisplayList
- by Brian Heylin
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?