Skip to main content
Phogelius
Participant
November 10, 2012
Question

AIR 3.5: stageOrientationEvent fires only UPSIDE_DOWN when <aspectRatio> is set in app descriptor xm

  • November 10, 2012
  • 2 replies
  • 775 views

Noticed a strange behaviour after updating my ios app to AIR 3.5 sdk: The auto-orientation stopped working for rotatedLeft and rotatedRight, it only kept firing for default and upsideDown.


Once I've removed the <aspectRatio>portrait</aspectRatio> in my app descriptor file all events fired again.

Is this a bug or is it on purpose?

To reproduce this just create a new project in FB 4.6 and AIR 3.5, set autoOrients to true and add or remove the aspectRatio part in the descriptor xml. With <aspectRatio> set you cannot rotate the adl preview window. Without it, you can.

This topic has been closed for replies.

2 replies

Adobe Employee
November 10, 2012

Please more details in my blogpost available at http://blogs.adobe.com/airodynamics/2012/05/22/stage-aspectratio-enhancements/

You might also be interested in more orientation changes in AIR 3.5 available at http://blogs.adobe.com/airodynamics/2012/09/28/orientation-changes-in-air/

Colin Holgate
Inspiring
November 10, 2012

It's intentional. By setting the aspectratio to portrait you are saying that it's a portrait only app. The change was made in AIR 3.3 I think.