イベントモデル ActionScript
--------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
mouseMove="mouseMoveHandler(event)">
<fx:Script>
<![CDATA[
private function mouseMoveHandler(event:MouseEvent):void{
var x:Number=this.mouseX;
var y:Number=this.mouseY;
move_txt.text = x+ " " + y;
}
]]>
</fx:Script>
<fx:Declarations>
<!-- 非ビジュアルエレメント (サービス、値オブジェクトなど) をここに配置 -->
</fx:Declarations>
<s:Label x="87" y="48" text="マウス : " width="81" height="18"/>
<s:TextInput x="150" y="44" id="move_txt"/>
</s:Application>