开发者

What is event bubbling in Flex?

开发者 https://www.devze.com 2023-01-06 09:03 出处:网络
开发者_如何学GoWhat is event bubbling in Flex?First, event bubbling is not specific to Flex, it\'s a feature related to AS3 event propagation.
开发者_如何学Go

What is event bubbling in Flex?


First, event bubbling is not specific to Flex, it's a feature related to AS3 event propagation.

Event propagation means the transference of a single event applying to multiple display objects. Each of those objects receives the event, instead of just the object in which the event originated.

I won't cover all the details of event propagation, google it for more info (http://www.adobe.com/devnet/actionscript/articles/event_handling_as3_03.html)

Event bubbling means an event dispatched from a display object will bubble up the display list, starting from the object dispatching the event to the stage.

Notice that you can also use the capture phase to listen to an event dispatched by one of a display object's children. See my comment here

0

精彩评论

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