4 Replies Latest reply on Jun 22, 2009 3:57 AM by apmyhr

    I need to read MouseMove event while dragging a component

    apmyhr Level 1

      I have a MousDown event for my component which does the following,

       

      public function MouseDownHandler(event:MouseEvent):void {

           systemManager.addEventListener(MouseEvent.Mouse_Up, MouseUpHandler);

           systemManager.addEventListener(MouseEvent.Mouse_Move, MouseMoveHandler);

           startDrag();

           // Do Stuff //

       

           function MouseMoveHandler(event:MouseEvent):void {

                // Do Stuff //

           }

       

           function MouseUpHandler(event:MouseEvent):void {

                //Do Stuff//

                stopDrag();

           }

      }

       

      The MouseUpHandler function is executed fine and that all works.  I added a breakpoint to the MouseMoveHandler, and I see that the program never reaches it.  It almost seems as if MouseMove events cannot be dispatched during a drag.  Any suggestions?