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

How to scale on iPad3 and iPad1

Contributor ,
Oct 22, 2012 Oct 22, 2012

Copy link to clipboard

Copied

I'm using Air 3.4 and 3.5 and I trying understand how to get the same app to be the same scale as the iPad 1 on the iPad 3. The tried using stage.stageScale = StageScaleMode.SHOW_ALL, it's not scaling.

Is there something else I need to do to get this working?

TOPICS
Performance issues

Views

691

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
Participant ,
Oct 22, 2012 Oct 22, 2012

Copy link to clipboard

Copied

In your root class try setting:

stage.align     = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;

After that you probably have to scale your root document:

widht   = stage.stageWidth;

height  = stage.stageHeight;

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
Contributor ,
Oct 22, 2012 Oct 22, 2012

Copy link to clipboard

Copied

LATEST

In my root mxml file (ViewNavigatorApplication) I put:-

     creationComplete="stage.scaleMode = StageScaleMode.NO_SCALE;width=stage.width;height=stage.height"

and it still didn't scale. I tried all combinations of StageScaleMode's and each time the result was identical.

I poked around in the app descriptor xml file and I noticed that I had resquestedDisplayResolution set to "high". When I removed it (effectively setting to "standard"), the application scaled correctly. And since setting scale mode didn't do anything, I've removed it to use the default.

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