Skip to main content
Participating Frequently
September 19, 2012
Question

AIR iOS application window is tiny

  • September 19, 2012
  • 12 replies
  • 1257 views

Hi,

I'm having a problem previewing my ios app on my computer (running Windows 7). The app is made for iPad and has a resolution of 1024x768. But when I preview it (export as a swf as opposed to play the ipa on my iPad) the window that displays it is tiny (I think exactly half the size of the app) and cannot be resized.

This causes the app to be twice as small as it should be, which is untestable. If I listen for Event.RESIZE and set the stage.scaleMode to NO_SCALE, then the app remains 1024 x 768 but only the corner of it is displayed in the tiny window (also untestable).

I'm having a heck of a time finding a solution for this. Does anyone know how to make the swf window larger??

Thanks,

Tabby

This topic has been closed for replies.

12 replies

Adobe Employee
September 19, 2012

Hi Tabby,

Please add the following to your main class / sprite's constructor -

stage.align = StageAlign.TOP_LEFT;

stage.scaleMode = StageScaleMode.NO_SCALE;

Please do let me know if this fixes your issue or not?

Participating Frequently
September 19, 2012

Thanks, I had tried that already and what that did was show my app at full size in a window that was 1/2 the size of the app (so you could only see the top left corner of the app). Because the window isn't resizable, obviously that didn't help me much.

What I really need is to be able to set the adl application preview window to be larger.

Adobe Employee
September 19, 2012

You can use the -screensize option in adl and set it iPadRetina or iPad to view it larger area.

You can adl -help to see more options.

Adobe Employee
September 19, 2012

I guess you have UIDeviceFamily key in InfoAdditions tag in application set to 1 which denotes an iPhone only app. Kindly cross check and revert.

Participating Frequently
September 19, 2012

I don't believe so. This is what my application xml reads:

<iPhone>

      <InfoAdditions>

           <![CDATA[<key>UIDeviceFamily</key><array><string>2</string></array>]]>

      </InfoAdditions>

</iPhone>