Flex mxml调用mxml 设置窗口居中
1、???? //关闭登录用户框 2、居中设置 把<mx:Application?? 改为<s:TitleWindow ?????????? import mx.managers.PopUpManager; ??????????? import mx.core.FlexGlobals; ?? ??? ??? ?//注册新用户 ?? ??? ??? ?private function linkbtnRegeditUser_clickHandler(event:MouseEvent):void ?? ??? ??? ?{ ?? ??? ??? ??? ?// TODO Auto-generated method stub ?? ??? ??? ??? ?var UserRegedit:UserRegister=UserRegister(PopUpManager.createPopUp(this,UserRegister,true)); ?? ??? ??? ??? ?//设置弹出窗口剧中 ?? ??? ??? ??? ?PopUpManager.centerPopUp(UserRegedit);?? ? ?? ??? ??? ??? ? ?? ??? ??? ??? ?//居中设置 ?? ??? ??? ??? ?UserRegedit.x=FlexGlobals.topLevelApplication.stage.stageWidth/2-UserRegedit.width/2;? ??? ??? ??? ??? ? ?? ??? ??? ??? ?UserRegedit.y=FlexGlobals.topLevelApplication.stage.stageHeight/2-UserRegedit.height/2; ?? ??? ??? ?} (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |