Reputation: 19885
How can i detect my client's screen resolution .. in Flex??
Zee
Upvotes: 3
Views: 2260
Reputation: 25523
//To know horizontal-screen-resolution
var screenResolutionX:Number = Capabilities.screenResolutionX;
//To know vertical screen-resolution
var screenResolutionY:Number = Capabilities.screenResolutionY;
Here's more info on the Capabilities API.
Upvotes: 8
Reputation: 6565
Capabilities.screenResolutionX;
Capabilities.screenResolutionY;
Here is the documentation on the Capabilities class, and all of the various information that can be acquired.
Upvotes: 2