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? -

keyboard - C++ GetAsyncKeyState alternative -

android - java.net.UnknownHostException(Unable to resolve host “URL”: No address associated with hostname) -