定位的Flex / AIR桌面应用程序窗口的右下角 [英] Positioning Flex/AIR Desktop App Window to the bottom right corner

查看:147
本文介绍了定位的Flex / AIR桌面应用程序窗口的右下角的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何线索如何能做到这一点?它需要在所有的决议..有任何父/ Stage对象可找出系统的分辨率?

解决方案

 公共职能的init():无效
{
    nativeWindow.x =(Screen.mainScreen.bounds.width  -  300)
    nativeWindow.y =(Screen.mainScreen.bounds.height  -  65)
}
 

这是一个300x65窗口位于右下角。您正在寻找屏幕

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 ) 				
}

This is a 300x65 window positioned in the bottom right. You are looking for Screen.

这篇关于定位的Flex / AIR桌面应用程序窗口的右下角的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆