开发者

flow in the bubble phase of the Event

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜