Skip to main content
July 5, 2011
Answered

I need help with iPad Landscape Dimensions.

  • July 5, 2011
  • 3 replies
  • 1699 views

I have been at this for a bit, going as far as needing to redesign my app to fit the iPad dimensions, and it's driving me nuts!
Can anyone tell me what the iPad stage settings should be?
I have set up a new AS3 project in Flash AS3 - Stage Size: 1024x 768
Publish Settings - Air For iOS, Aspect Ratio - Landscape, Rendering - CPU, Resolution - Standard.
However when I publish, and deploy the app to the iPad, I get 2 white bars (stage is white) on either side in landscape orientation. They are about 50px wide.

What am I doing wrong here. If I rescale my content to let's say, 1156 * 768, The content fills the screen.

Every book, blog, and forum always publishes 1024x768. I am following the e-book iOS "Development with Flash®"

Has anyone else run into this issue with the iPad 1 or 2?
(I am using an iPad 1 with iOS 4.3.1..? to test with)

This topic has been closed for replies.
Correct answer relaxatraja

1024*768 is fine and also use the followiing code while packaging and publish it in full screen and uncheck the autoorient property.

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

3 replies

Participant
July 6, 2011

You didn't mention it but it soudns like you are not using fullscreen mode.

If not you should consider, that the system bar at the top is stealing some of the space, which would be 1024*768. Try enabling that and look how it works out.

July 6, 2011

Yup, taymless is right - I've experienced the same lately as I've forgotten the navigation bar. It's height is exactly 20px.

relaxatraja
relaxatrajaCorrect answer
Inspiring
July 6, 2011

1024*768 is fine and also use the followiing code while packaging and publish it in full screen and uncheck the autoorient property.

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

July 5, 2011

Try changing you aspect ratio to Portrait instead of Landscape.

Sounds like its taking your file and squishing it to fit and enveloping the remainder of the area.

Also make sure you are publishing for iPad or iPad + iPhone.

Also try turning auto orientation on and seeing what happens, just for test purposes.