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:
Comments
Post a Comment