Fellow FlexCoders...

I am sitting here having a debate on how the event phases works in
AS3. A couple of us have differing opinions of how events bubble, up
or down, inside or out. Maybe I've always been a little confused
"exactly" how bubbling works through the display object hierarchy, can
you clarify?..

(from the docs, complete with typo)

"When an event occurs, it moves through the three phases of the event
flow: the capture phase, which flows from the top of the display list
hierarchy to the node just before the target node; the target phase,
which comprises the target node; and the bubbling phase, which flows
from the node subsequent to the target node back up the display list
hierarchy."

If I have 100 display Objects on the stage, is the top of the list
100, or is it 0?  And, isn't the word top, a little confusing, because
aren't the displayObjects actually containers? I bet if you work for
adobe, this is on a diagram on paper, would the docs team mind adding
it to the documentation, just because this really needs a visual aid.

So if you can clear this up, then I will understand how the event
phase works (and more importantly why it does not like in my current
situation).  What I want to achieve is have a nested child receive an
events from one of it's parents? Bubbling is not working, which is
odd, because, shouldn't the whole display list be traversed with
bubbling set to true, eventually?

The solution, I have used several times, is to add the listener to the
application object in Flex, but that seems hackish to me.

Thanks, for your time, because I really want to remove all doubt in
this area once and for all, since i have been working with as3 for
over 2 years now...

Patrick

Reply via email to