我有以下内容:
var win:Window = new Window();
PopUpManager.addPopUp(win,this,true);
PopUpManager.centerPopUp(win);
如果我希望拉伸弹出窗口并且父级的宽度和高度为80%怎么办?我如何实现这一目标?
答案 0 :(得分:2)
var win:Window = new Window();
win.width = this.width*.8;
win.height = this.height*.8;
PopUpManager.addPopUp(win,this,true);
PopUpManager.centerPopUp(win);