想要管理多个弹出的页面,就得获得这些页面的id引用。虽然PopUpManager.addPopUp可以创建弹出页面,但是这个方法没有返回值。 幸好,PopUpManager.createPopUp方法有返回值,返回的就是当前弹出的页面对象
原创 2022-12-06 10:36:24
44阅读
//居中显示 var registerwindow:registerWindow=new registerWindow(); var W_width:Number=this.stage.stageWidth; var H_heigth:Number=this.stage.stageHeight; registerwindow.x=(W_width - registerwindow.width) / 2; registerwindow.y=(H_heigth - registerwindow.height) / 2; PopUpManager.addPopUp(registerwindow,th
转载 2011-03-11 13:46:00
126阅读
PopUpManager 类主要是用来弹出新的窗口或者对话框。我们主要使用它的一些方法来创建UI窗口,并设置窗口的弹出方式,以及删除窗口。PopUpManager 类弹出窗口的2种方式如下: 1 使用addPopUp 。(先new出来对象,设置好表现形式,然后在选择弹出来的方式。一定要注意new对象与弹出方式的先后顺序),核心代码如下:var label:Label = new Label(); label.text = "Hello world"; titleWindow = new TitleWindow(); titleWindow.title = "Cus
转载 2013-06-07 20:52:00
39阅读