<?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">
<fx:Declarations>
<!-- 将非可视元素(例如服务、值对象)放在此处 -->
</fx:Declarations>
<fx:Script>
<![CDATA[
import mx.controls.Alert;
public function clickHandler(clickEvent:Event):void{
Alert.show("事件类型:"+clickEvent.type+"来自于:"+clickEvent.currentTarget.id);
}
]]>
</fx:Script>
<s:Button x="10" y="10" id="hi" label="您好,点我试试" click="clickHandler(event)" fontSize="50" />
</s:Application>
深入浅出flex4应用(1)-入门
最新推荐文章于 2024-09-13 13:05:50 发布