将 Flex/AIR 桌面应用程序窗口定位到右下角 [英] Positioning Flex/AIR Desktop App Window to the bottom right corner
本文介绍了将 Flex/AIR 桌面应用程序窗口定位到右下角的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有什么线索可以实现吗?它需要适用于所有分辨率.. 是否有任何父/阶段对象可用于找出系统的分辨率?
Any clues how this can be achieved? It needs to work on all resolutions .. is there any parent/stage object available to find out the resolution of the system?
推荐答案
public function init():void
{
nativeWindow.x = ( Screen.mainScreen.bounds.width - 300 )
nativeWindow.y = ( Screen.mainScreen.bounds.height - 65 )
}
这是一个位于右下角的 300x65 窗口.您正在寻找屏幕.
This is a 300x65 window positioned in the bottom right. You are looking for Screen.
这篇关于将 Flex/AIR 桌面应用程序窗口定位到右下角的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文