Skip to main content
macniroc2
Inspiring
July 13, 2012
Question

Air 3.3 cannot change orientation

  • July 13, 2012
  • 3 replies
  • 1561 views

Hello,

     I am using the Flex 4.6 SDK with AIR 3.3. From updating from AIR 3.1 I noticed that I can no longer change the orientation when using the emulator in Flash Builder. Is there a fix/work around for this?  Thanks!

*edit  I have noticed that orientation works on iPad and iPhone devices but the application will not orient landscape/portrait on android tablets/phones

This topic has been closed for replies.

3 replies

macniroc2
macniroc2Author
Inspiring
July 13, 2012

Solved it myself

"From AIR.3.3 onwards, developing LANDSCAPE (or PORTRAIT) only applications has been made easier. With the aspectRatio set to LANDSCAPE(or PORTRAIT) and autoOrients set to true the application descriptor,the stage would automatically reorient only in LANDSCAPE (or PORTRAIT) orientations. Handling orientationChanging events and calling preventDefault() is no longer required to achieve this behavior. One can also change the StageAspectRatio at the runtime by calling the Stage.setAspectRatio() with the desired aspect ratio."

Participant
August 8, 2012

My iPhone app using flex is not working in auto orientation. Is there any code for that.

macniroc2
macniroc2Author
Inspiring
August 8, 2012

Can you elaborate on your question?