Zeeshan Rang
Zeeshan Rang

Reputation: 19885

Detecting client screen resolution

How can i detect my client's screen resolution .. in Flex??

Zee

Upvotes: 3

Views: 2260

Answers (2)

Joseph
Joseph

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

Joel Hooks
Joel Hooks

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

Related Questions