1 Reply Latest reply on Jun 30, 2008 2:54 PM by Gregory Lafrance

    capture event propagation

    klebed
      Hello,
      I have simple problem, but I can't it resolve.

      There is

      private function firstListener(e:Event)

      I want to handle event invokation on capture phase

      private function registerListeners():void {
      addEventListener("testEvent", firstListener, true); third parameter useCapture set to true for handle on capture phase
      }

      after a click on button invoke next
      private function dispEvnt():void {
      dispatchEvent(new Event("testEvent", false, true)); //here 2-nd parameter bubbles set to false
      }

      but after invokation dispEvnt() function I can handle it only with addEventListener("testEvent", firstListener, false);
      It never invokes during capture phase.
      How can I handle event on first capture phase event with addEventListener("testEvent", firstListener, true);

      Thanks