发表评论
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[
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:VBox xmlns:mx="http://www.adobe.com/2006/mxml" width="300" height="500" paddingTop="10" paddingLeft="10" verticalGap="15" click="traceMousePosition(event)" x="96" y="87">
<mx:Image source="@Embed('assets/01.jpg')"/>
<mx:Image source="@Embed('assets/02.jpg')"/>
<mx:Image source="@Embed('assets/03.jpg')"/>
<mx:Image source="@Embed('assets/04.jpg')"/>
</mx:VBox>
</mx:Application>
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。