Skip to main content
February 25, 2011
Question

Orientation issues

  • February 25, 2011
  • 1 reply
  • 552 views

Hi guys,

I'm building a prototype using a Galaxy Tab and I have an issue with Screen Orientation.

The thing is, the Galaxy Tab is placed in a casing "up side down". Buttons on the Left. Android OS is orientated properly.

When the app starts up, the Splash Screen orientates properly, but when it goes away, the app is the wrong way round(rotated 180°). I now have to move/shake the casing to get the right orientation.

In my descriptor file I have this:

<autoOrients>true</autoOrients>
<aspectRatio>landscape</aspectRatio>
<fullScreen>true</fullScreen>

Is it possible to change the orientation programtically? I found that setOrientation() is deprecated as of AIR 2.5

Any help is highly appreciated.

Cheers

Gabor

This topic has been closed for replies.

1 reply

Known Participant
April 11, 2012

Did you ever get this figured out? I'm having very similar trouble today.

Participant
April 11, 2012

I hade a similar problem and changed the code to:

descriptor file:

 

<autoOrients>false</autoOrients> 

<

aspectRatio>landscape</aspectRatio>

<fullScreen>true</fullScreen

>

.as file:

stage.setAspectRatio(StageAspectRatio.LANDSCAPE);

this worked for me.



regards,

/Lars