拡張子:txtvbswsfjsphpjavahtmlutf8sjis <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" initialize="initData();" > <mx:Script> <![CDATA[ import mx.controls.*; // アプリケーションの初期化 public function initData():void { } // クリックイベント public function func_01(e:MouseEvent):void { Alert.show( e.shiftKey+"" ); txt_01.text += e.currentTarget.label; } ]]> </mx:Script> <mx:Button id="btn_01" label="ボタン" click="func_01(event)" /> <mx:TextArea id="txt_01" width="400" height="100" /> </mx:Application>
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" initialize="initData();" > <mx:Script> <![CDATA[ import mx.controls.*; // アプリケーションの初期化 public function initData():void { } // クリックイベント public function func_01(e:MouseEvent):void { Alert.show( e.shiftKey+"" ); txt_01.text += e.currentTarget.label; } ]]> </mx:Script> <mx:Button id="btn_01" label="ボタン" click="func_01(event)" /> <mx:TextArea id="txt_01" width="400" height="100" /> </mx:Application>