Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Detecting client screen resolution

Tags:

apache-flex

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

Zee

like image 755
Zeeshan Rang Avatar asked Dec 21 '25 14:12

Zeeshan Rang


2 Answers

//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.

like image 179
Joseph Avatar answered Dec 24 '25 09:12

Joseph


Capabilities.screenResolutionX;
Capabilities.screenResolutionY;

Here is the documentation on the Capabilities class, and all of the various information that can be acquired.

like image 34
Joel Hooks Avatar answered Dec 24 '25 11:12

Joel Hooks



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!