• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Capabilities.screenResolutionY returning incorrect value for iPhone5

New Here ,
Nov 13, 2012 Nov 13, 2012

Copy link to clipboard

Copied

Hello,

I am attempting to make gui adjustments based on the values returned by flash.system.Capabilities. However when I test on the iPhone5 in portrait mode the values returned are screenResolutionX: '640' and screenResolutionY: '960'. I am compiling with air 3.5 in renderMode: 'gpu' and have set the swf metadata tp widthPercent: 100% and heightPercent: 100%. Am I doing something incorrectly?

Thanks

CJ

TOPICS
Development

Views

1.1K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Nov 13, 2012 Nov 13, 2012

To get the right dimensions you will need to have included a splash screen for the iPhone 5 size, with a name of "Default-568h@2x.png". That image would be 640x1136, and when iOS sees it, it then knows that you want the iPhone 5 to use the whole screen.

Votes

Translate

Translate
LEGEND ,
Nov 13, 2012 Nov 13, 2012

Copy link to clipboard

Copied

LATEST

To get the right dimensions you will need to have included a splash screen for the iPhone 5 size, with a name of "Default-568h@2x.png". That image would be 640x1136, and when iOS sees it, it then knows that you want the iPhone 5 to use the whole screen.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines