Java活用生活

ログイン

オンライン状況

オンラインユーザー1人
ログインユーザー0人
登録ユーザー2人

カウンタ

COUNTER335479

トピックス

トピックス >> 記事詳細
2020/08/14

イベントモデル

固定リンク | by:aramaki
イベントモデル 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>

09:26 | 投票する | 投票数(0)
Copyright © Java活用生活 All Rights Reserved .