actionscript 3 - Flash Player event bubbling/capturing mode -


can please give simple example of use capture mode rather bubbling mode flash player event?

most of time using bubbling mode , set usecapture false (when adding event listner). ideal situation use capturing phase?

basically if want stop propagation, should use capturing phase. example, have default keyboard listener, , want cancel in rare condition. there points when may want use capturing phase, can achieved without it. understand capturing , bubbling phase, see image below:

enter image description here


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -