弹出自定义模态窗口

/**
 * 点击修改密码按钮时,弹出修改密码对话框。
 */
private var setPassWdDlg:SetPassWordDlg = null;
private function onModifyPW():void{
	setPassWdDlg = null;
	setPassWdDlg = PopUpManager.createPopUp(this, SetPassWordDlg, true) as SetPassWordDlg;
	setPassWdDlg.x = (Capabilities.screenResolutionX - setPassWdDlg.width) / 2;
	setPassWdDlg.y = (Capabilities.screenResolutionY - setPassWdDlg.height) / 2;
	var obj:Object = new Object();
	obj.userId ="user";
	obj.flag = true;
	setPassWdDlg.parasObj = obj;
	setPassWdDlg.visible = true;
}

 

你可能感兴趣的:(自定义)