X轴上的像素点
Capabilities.screenResolutionX
Y轴上的像素点
Capabilities.screenResolutionY
不同的分辨率下,程序跳出来的位置是相同的
import flash.system.Capabilities;
function moveToUpperRight():void
{
window.bounds = new Rectangle(Capabilities.screenResolutionX - window.bounds.width, 0, window.bounds.width, window.bounds.height);
}
Capabilities.screenResolutionX
Y轴上的像素点
Capabilities.screenResolutionY
不同的分辨率下,程序跳出来的位置是相同的
import flash.system.Capabilities;
function moveToUpperRight():void
{
window.bounds = new Rectangle(Capabilities.screenResolutionX - window.bounds.width, 0, window.bounds.width, window.bounds.height);
}