在弹出的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);
Photoshop|
Dreamweaver|
SVG|
WebGL|
Visual Studio|
PowerDesigner|
Eclipse|
Git|
Apache Ant|
Atom|
Composer|
CodeSmith|
Flex|
Gradle|
Maven|
Sublime Text3|
SVN|
Tableau|
Vim|
Chrome开发者工具|
OpenGL|
Unity|
Direct3D|
用户登录
还没有账号?立即注册
用户注册
投稿取消
文章分类: |
|
还能输入300字
上传中....