Skip to main content
Inspiring
10월 22, 2012 7:07 오전 UTC
공지사항

How to scale on iPad3 and iPad1

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?

이 주제는 답변이 닫혔습니다.

2 답변

jfweber
Inspiring
10월 22, 2012 12:34 오후 UTC

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
10월 23, 2012 2:11 오전 UTC

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.

번역