header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
Amit
Points:0
Posts:0

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



1
Troy
Points: 820
Posts:0
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.

2
Friend
Points: 710
Posts:0
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


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 2+8 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions