I have the following code:
a_panel.addEventListener(MouseEvent.MOUSE_DOWN, function():void{a_panel.startDrag(true);
a_panel.addEventListener(MouseEvent.MOUSE_UP, function():void{a_panel.stopDrag();})});
When I drag, the mouse cursor immediately snaps to the upper left corner and it always drags by the upper left corner. How do i get rid of this movement altogether and just have the object be dragged by where the mouse cursor initially was?