10/6/2010 6:45:15 AM
Title:
flow of the bubble phase of the Event
In any Flex Events (e.g MouseClick ETC),Can i set the property bubble=false.
I wanted to know, the flow in the bubble phase of the Event.
Can anybody explain me with exp that what happen in the bubble phase and what we can do in the bubble phase.
Thanks in Advance.
Amit
10/6/2010 9:24:01 AM
setting bubble to false means you do not want the event to bubble. Bubbling means the event is traveling from clicked object to root of application. For e.g on click of button the event will be received by all the parents in this case first button then container then application will receive the click event.
button --> container --> Application
setting bubble to false does not allow the event to bubble, so parents will not receive the event just the button will receive the event.
10/7/2010 3:08:44 AM
setting bubble phase prevents the event from broadcasting to other components. Its similar to runtime use of stopPropagation() or stopImmediatePropagation() which stops the event from further bubbling.
all the events cannot be stopped from bubbling. The major events that bubble are
change, keyUp, click, doubleClick, keyDown, mouseDown, and mouseUp