Skip to main content
Inspiring
March 11, 2013
Question

iPad game screen is faced down

  • March 11, 2013
  • 3 replies
  • 648 views

Hi,

I'm developing a game in iPhone, iPod and iPad. Only landscape mode is permitted.

When I launch the app in a iPad and I turn the device on my hands having the button on my left the game is turned 180º. I'm seeing everything faced down. I need to turn the iPad again two times.

This does not happen in iPhone nor iPod devices.

I attach the XML configuration.

Is this a Adobe Air bug??

thanks!

Phone>

        <InfoAdditions><![CDATA[

 

                              <key>UIStatusBarStyle</key>

                              <string>UIStatusBarStyleBlackOpaque</string>

                              <key>UIRequiresPersistentWiFi</key>

                              <string>YES</string>

                              <key>UIPrerenderedIcon</key> 

                              <true/>

                               <key>UIApplicationExitsOnSuspend</key>

                               <false/>

 

                              <key>UIDeviceFamily</key>

                              <array>

                                        <!-- iPhone support -->

                                        <string>1</string>

                                        <!-- iPad support -->

                                        <string>2</string>

                              </array>

 

        ]]></InfoAdditions>

                    <!-- <requestedDisplayResolution>high</requestedDisplayResolution> -->

                     <requestedDisplayResolution>standard</requestedDisplayResolution>

    </iPhone>

 

          <initialWindow>

                    <title>gfhjfgj</title>

                    <content>fgjhfghjfgjfgjh.swf</content>

                    <visible>true</visible>

                    <fullScreen>true</fullScreen>

                    <autoOrients>true</autoOrients>

                    <aspectRatio>landscape</aspectRatio>

                    <renderMode>gpu</renderMode>

          </initialWindow>

This topic has been closed for replies.

3 replies

Pahup
Adobe Employee
Adobe Employee
March 12, 2013

Hi,

Thanks for reporting the problem. Would it be possible for you to share a video of the problem you're facing, that'll help us understand your problem precisely. Also, could you please share the snippet of your project where you're playing with autoOrients and aspectRatio APIs.

By the way, what's the swf-version and namespace you're using, and which version of AIR SDK you're packaging with?

-Pahup

Inspiring
March 13, 2013

Hi, right now I can't upload a video with the problem. I'm using Adobe Air 3.5

Anyway it's easy to reproduce: prepare an app (iPhone and iPad) with autoorientation true and aspectRation landscape, launch it in a iPad Mini or iPad Retina with the home button on your left and when the app is loaded all the images are faced down.

On the other hand these devices are not receiving StageOrientationEvent.

On the other hand, iPad2 device is showing the app in Portrait mode. He just does not care about what you configure. Fortunatly this device receives the event.

                              stage.addEventListener(StageOrientationEvent.ORIENTATION_CHANGING, orientationChange );

                              function orientationChange(e:StageOrientationEvent):void

                              {

                             

                                if(e.afterOrientation == StageOrientation.UPSIDE_DOWN || e.afterOrientation == StageOrientation.DEFAULT)

                                                                       e.preventDefault();

                                                                      

                              }

Inspiring
March 14, 2013

Seems to be a Adobe Air 3.5 bug with iOS 6 in iPad devices.

If

<autoOrients>true</autoOrients>

<aspectRatio>landscape</aspectRatio>

is written, landscape mode is always displayed BUT it's rotated on the beginning of the app if the button is on your left side.  StageOrientationEvent is never called

If

<autoOrients>true</autoOrients>

is written, the screen is not turned automatically on the beginning but we don't have any control of the screen orientation because StageOrientationEvent is not ever called either.

Should I write a bug in Adobe database?

thanks!