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?
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;
Copy link to clipboard
Copied
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.