Flash Event寫法
更新時間:2008年05月27日 15:41:34 作者:
flash下event事件驅(qū)動方法
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Button x="144" y="190" label="Button">
<mx:click>
<![CDATA[
import mx.controls.Alert;
Alert.show("click");
]]>
</mx:click>
<mx:focusOut>
<![CDATA[
import mx.controls.Alert;
Alert.show("focusOut");
]]>
</mx:focusOut>
</mx:Button>
</mx:Application>
對優(yōu)化代碼很有好處
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Button x="144" y="190" label="Button">
<mx:click>
<![CDATA[
import mx.controls.Alert;
Alert.show("click");
]]>
</mx:click>
<mx:focusOut>
<![CDATA[
import mx.controls.Alert;
Alert.show("focusOut");
]]>
</mx:focusOut>
</mx:Button>
</mx:Application>
對優(yōu)化代碼很有好處
相關(guān)文章
flex SystemManger監(jiān)控用戶是否和程序打交道
flex中可以通過SystemManger監(jiān)控用戶是否和程序打交道2009-05-05Flex與.NET互操作 使用FileReference+HttpHandler實現(xiàn)文件上傳/下載
Flex與.NET互操作 使用FileReference+HttpHandler實現(xiàn)文件上傳/下載2009-06-06