1、弹窗不想让用户点击弹窗后的按钮?需要将获取出来的组件设为fgui.Window;
this._view = fgui.UIPackage.createObject("packageName", viewName).asCom;
this._window=new fgui.Window(); this._window.contentPane=this._view; this._window.modal=true; //禁止点击弹窗后面的按钮,主要就是需要设置这个属性this._window.center(); //这个方法将弹窗局中显示
通过this._window.show()和hide()控制弹窗的显示和隐藏
网友评论