import flash.events.MouseEvent; var odx:Number=mouseX; var ody:Number=mouseY; stage.addEventListener(MouseEvent.MOUSE_DOWN,onMouseDown_func) stage.addEventListener(MouseEvent.MOUSE_UP, onMouseUp_func); function onMouseDown_func(_evt:MouseEvent):void{…