如何在Flex中检测客户端的屏幕分辨率?
Zee的
答案 0 :(得分:8)
//To know horizontal-screen-resolution
var screenResolutionX:Number = Capabilities.screenResolutionX;
//To know vertical screen-resolution
var screenResolutionY:Number = Capabilities.screenResolutionY;
以下是Capabilities API的更多信息。
答案 1 :(得分:2)
Capabilities.screenResolutionX;
Capabilities.screenResolutionY;