To lock my application, I set stage.autoOrients to false. It locks the orientationa as I expect.
However, if the app is in portrait mode and I set stage.autoOrients to false, the application always to turn
to lanscape mode before it locks the auto-orients. In order to view the application in the portrait mode, while locking the auto-orientation, I have to call stage.setAspectRatio('portrait'). Calling stage.setAspectRatio('portrait') forces the app to show in the portrait mode.
So if it is in the portrait mode and set stage.autoOrients to false, then set stage.setAspectRatio('portrait'), the application will turn from portrait mode to landscape mode then turn back to portrait. This looks early.
When I set stage.autoOrients to false, I like the app to stay in whatever display mode it is ( don't turn to landscape as current Android behavior). Can this be done?
Thank you in advance for any help,
Had the same issue. My screen when I would go to lock it (set false) always went to portrait so before setting stage.autoOrients to false, I get the current value and set it after back to what it was. Sometimes there is a slight flicker but not very noticeable and seems to work.
stage.autoOrients = false;
Same issue here with Android 4.2 on Nexus 10 using latest FLEX SDK and Adobe AIR SDK 126.96.36.1990!
It's quite annoying that setting "stage.autoOrients = false" the screen automatically switches to the "default" - Orientation.
Please fix this.
Edit: Have you post this bug over here: http://bugbase.adobe.com ?