您的位置:首页 > 其它

【转】iptables+iproute2+nat 实现举例(UML图画的有点糙),

2008-07-26 17:25 344 查看
Flex 弹出Window 很简单,实例化后 调用open(true)方法。

然而 要在指定位置打开window不是那么容易。例如 QQ 登录后主面板 显示的位置。

第一种解决方法:

private var Stageheight:Number = flash.system.Capabilities.screenResolutionY; //获得屏幕x坐标

private var Stagewidth:Number = flash.system.Capabilities.screenResolutionX; //获得屏幕y坐标

在窗体init()方法内添加:

this.nativeWindow.x=Stagewidth-this.width-150; (x的具体坐标)

this.nativeWindow.y=Stageheight/2-this.height/2; (y的具体坐标)

或者 this.move(Stagewidth-this.width-150,Stageheight/2-this.height/2);

是可以实现移动到具体位置,但会出现,先有空白,然后才会移动 如图





这样体验很差劲。

最红终于找到了新的解决办法——

第二种解决方法:

var currentChatMainWin:ChatMainWin = new ChatMainWin();

currentChatMainWin.open(true);

currentChatMainWin.nativeWindow.x=Stagewidth-this.width;

currentChatMainWin.nativeWindow.y=Stageheight/2-this.height

在实例化后指定具体位置,不在window 初始化时指定

这样 就不会先出现空白页面了。 窗体会直接显示到指定的坐标位置
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: