flex界面切換有幾種方法?
在彈出的windows中使用回調,設置主頁面的參數時,在使用Object對象:
1.在父窗口中打開的時候增加owner參數為this:varchildWin:ChildWin=newChildWin();childWin.owner=this;//this即為當前窗口PopUpManager.addPopUp(childWin,this,false);
2.在子窗口中調用方式varpModule:Object=owner;pModul.回調主頁面方法();//關閉popwindowsPopUpManager.removePopUp(this);方法使用的是publicfunction回調主頁面方法()--------------------------------------------------------------------打開窗口方式二:居中打開varchildWin:ChildWin=ChildWin(PopUpManager.createPopUp(this,ChildWin,true));childWin.owner=this;PopUpManager.centerPopUp(childWin);--------------------------------------------------------------------打開窗口方式三:居中打開varchildWin:ChildWin=newChildWin();childWin.owner=this;//this即為當前窗口PopUpManager.addPopUp(childWin,this,false);PopUpManager.centerPopUp(childWin);