Skip to main content
Inspiring
October 22, 2012
Question

How to scale on iPad3 and iPad1

  • October 22, 2012
  • 1 reply
  • 807 views

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?

This topic has been closed for replies.

1 reply

jfweber
Inspiring
October 22, 2012

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;

Inspiring
October 23, 2012

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.