开发者

flow in the bubble phase of the Event

开发者 https://www.devze.com 2023-01-19 10:02 出处:网络
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

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();
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号