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
Patrick -
Events bubble up the parental chain from the dispatcher. So, your child
will not ever catch an event that is dispatched by its parent (bubbling
or non). Conversely, parents will always catch bubbling events
dispatched by their children. This should also aid you in understanding
Here is a simple example, which demonstrates what the docs say
?xml version=1.0 encoding=utf-8?
mx:Application
xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute
applicationComplete=main()
mx:Script
![CDATA[
On Aug 6, 2008, at 12:48 PM, Ralf Bokelberg wrote:
for each( var component in [this, hb1, hb2, b1, hb3])
Hadn't seen that done before.
nice.
The only downside to the whole event bubbling hooplah is that all
your components, and all your children need to extend EventDispatcher
or some
06, 2008 10:02 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Event Phase clarification bubbling - please
Diagram
On Aug 6, 2008, at 12:48 PM, Ralf Bokelberg wrote:
for each( var component in [this, hb1, hb2, b1, hb3])
Hadn't seen that done before.
nice
5 matches
Mail list logo