Monday, December 29, 2008

Finding Screen Resolutions in AIR

Using the capabilities , we can find the current screen resolutions ,As per the simple code, listed below :


desktopWidth = Capabilities.screenResolutionX;


desktopheight = Capabilities.screenResolutionY;




The screenResolutionX is defines the screen width and screenResolutionY is defines the screen height.

No comments: