不适用PopUpManage弹出
程序员文章站
2022-04-30 09:39:53
...
Test包下test.mxml代码
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="200" height="200">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
]]>
</mx:Script>
<mx:Button label="textpop">
<mx:click>
<![CDATA[
Alert.show("测试弹出窗口");
]]>
</mx:click>
</mx:Button>
</mx:Canvas>
Main.mxml代码
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:test="test.*">
<mx:Button label="test" click="test()">
</mx:Button>
<mx:Script>
<![CDATA[
import mx.controls.Alert;
import test.test;
private function test():void{
Alert.show("","",4,this,null,test.test,4);
}
]]>
</mx:Script>
</mx:Application>
上一篇: FLEX进阶-------加密解密
下一篇: 使用列表控件(转)