In AS3 code for Air, how can I get the screen width and height of the mobile device its running on?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Check the Screen object for how to do that:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Screen.html#includeExamplesSummary
You can pretty easily figure out the dimensions of your NativeWindow, then find the screen it’s on, and see the bounds by doing this: