flex PopUpWindow使用百分比调整大小

时间:2011-11-30 14:14:43

标签: flex resize popupwindow

我有以下内容:

var win:Window = new Window();
PopUpManager.addPopUp(win,this,true);
PopUpManager.centerPopUp(win);

如果我希望拉伸弹出窗口并且父级的宽度和高度为80%怎么办?我如何实现这一目标?

1 个答案:

答案 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);