What is the difference between event.bubbles to false for any event, and setting event.stopPropagation() or stopImmediatePropagation() while handling event?
I’m using Flex4 with AS3.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Setting
bubblestofalsemeans the event does not bubble up the display list at all.stopPropagation()andstopImmediatePropagation()make the current event listener the last to process an event.The difference between
stopPropagation()andstopImmediatePropagation()is thatstopImmediatePropagation()will not only prevent the event from moving to the next node, but it will also prevent any other listeners on that node from capturing their events.