欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

不适用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>

 

相关标签: Adobe XML