3 Replies Latest reply on Aug 11, 2010 10:47 AM by bmilesp

    re-dispatchEvent after stopImmediatePropigation?

    bmilesp Level 1

      Hello,

       

      I have an event getting captured in the preloader then the event has stopImmediatePropigation called. I've been trying to dispatch the event again using a number of methods including:

       

      //in init function:

      //_preloader.addEventListener(FlexEvent.PRELOADER_DOC_FRAME_READY, onDocFrameReady, false, int.MAX_VALUE);

       

      private function onDocFrameReady(e:FlexEvent):void

      {

           pendingInitProgressEvent = e.clone();
           e.stopImmediatePropagation();
           dispatchEvent(pendingInitProgressEvent);// here for testing

      }

       

      the last line does not work, yet when i comment out the code block in the onDocFrameReady function, the event is not stopped and is fired as expected.


      So, how can i capture the event then dispatch it later? thank you -b