Output mouse position in mouse move event
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:HBox width="500" height="300" mouseMove="trace(this.contentMouseX+' : '+this.contentMouseY);"> <mx:Panel width="400"> <mx:Label text="Center" horizontalCenter="200"/> </mx:Panel> <mx:Panel width="400"> <mx:Label text="Center" horizontalCenter="200"/> </mx:Panel> </mx:HBox> </mx:Application>