用户登录
用户注册

分享至

flex弹窗

  • 作者: 那些寂寞本就属于我
  • 来源: 51数据库
  • 2020-09-24
在弹出的windows中 使用回调, 设置主页面的参数时,在使用Object对象:
1. 在父窗口中打开的时候增加owner参数为this:
var childWin:ChildWin = new ChildWin();
childWin.owner = this; // this 即为当前窗口
PopUpManager.addPopUp(childWin, this, false);
2. 在子窗口中调用方式
var pModule:Object = owner;
pModul.回调主页面方法();
// 关闭 pop windows
PopUpManager.removePopUp(this);

方法使用的是 public function 回调主页面方法()

--------------------------------------------------------------------
打开窗口方式二: 居中打开
var childWin : ChildWin = ChildWin(PopUpManager.createPopUp(this, ChildWin, true));
childWin.owner = this;
PopUpManager.centerPopUp(childWin);
--------------------------------------------------------------------

打开窗口方式三: 居中打开
var childWin:ChildWin = new ChildWin();
childWin.owner = this; // this 即为当前窗口
PopUpManager.addPopUp(childWin, this, false);
PopUpManager.centerPopUp(childWin);
软件
前端设计
程序设计
Java相关