trace mouse position
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:VBox width="300" height="500" paddingTop="10" paddingLeft="10" verticalGap="15" mouseMove="traceMousePosition(event)"> <mx:Script> private function traceMousePosition(event:MouseEvent):void { trace(" MouseEvent local position "+event.localX+" "+event.localY); trace(" MousePosition stage position "+event.stageX+" "+event.stageY); trace(" MouseEvent position from w/in component "+this.mouseX+" "+this.mouseY); trace(" Content Mouse Position "+this.contentMouseX+" "+this.contentMouseY); } </mx:Script> <mx:Image source="@Embed('logo.jpg')"/> </mx:VBox> </mx:Application>