Just want to know regarding the bubble phase of the events with some exp.
Can we set the开发者_StackOverflow中文版 bubble property true or false in run time. Please tell me
Thanks iin Advace.
You can sen bubble property in Event constructor:
var event:Event = new Event("myEventName", true); // bubbles = true
Changing event.bubble property at runtime will have no effect. To stop event propagation use:
event.stopPropagation();
or if you don't want to invoke listeners even from the currentTarget,
event.stopImmediatePropagation();
加载中,请稍侯......
精彩评论