【转】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 初始化时指定
这样 就不会先出现空白页面了。 窗体会直接显示到指定的坐标位置
然而 要在指定位置打开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 初始化时指定
这样 就不会先出现空白页面了。 窗体会直接显示到指定的坐标位置
相关文章推荐
- 如何用iptables实现NAT
- 如何用iptables实现NAT
- iptables学习笔记——iptables实现NAT
- linux教程:如何用iptables实现NAT
- iptables NAT+squid实现透明代理
- 如何用iptables实现NAT
- iptables实战系列:通过NAT转发实现私网对外发布信息 推荐
- 如何用iptables实现NAT
- iptables实现防火墙及NAT的基本功能----视频下载
- iptables实战系列:通过NAT转发实现私网对外发布信息
- 配置iptables NAT端口转发 实现内网服务器端口提供公网接入
- 如何用iptables实现NAT
- linux教程:如何用iptables实现NAT
- [iptables]Redhat 7.2下使用iptables实现NAT
- 用iptables实现NAT
- 防火墙iptables实现Linux强大的NAT功能
- 如何用iptables实现NAT 【转】
- 摘自ubuntuer- Linux防火墙iptables学习笔记(四)iptables实现NAT
- iptables实现nat
- 如何用iptables实现NAT(转)