-
1. Re: Can't seem to control screen orientation on Android
secolaha Apr 11, 2012 2:54 PM (in response to spinlight)Hi,
I think setOrientation has been deprecated.
have you tried
stage.setAspectRatio(StageAspectRatio.LANDSCAPE);
instead?
/Lars
-
2. Re: Can't seem to control screen orientation on Android
spinlight Apr 11, 2012 3:20 PM (in response to secolaha)So is the idea to use StageOrientationEvent.ORIENTATION_CHANGING in combination with stage.setApsectRatio?
-
3. Re: Can't seem to control screen orientation on Android
spinlight Apr 11, 2012 4:08 PM (in response to spinlight)It's like it has to stop and try at every rotation point in between as well. So it distorts my app for a moment while it works it's way to my current orientation. It's such a struggle to have our apps launch cleanly and handle orientation from Air version to Air version. I've never had it working well on Android so I feel like I'm missing something. Just want it to be landscape and have only two possible views. 0 and 180 degrees.
-
4. Re: Can't seem to control screen orientation on Android
DenisBulichenko Apr 11, 2012 9:58 PM (in response to spinlight)I have the same problem with changing orientation dynamically, it blinks and performs strange.
-
5. Re: Can't seem to control screen orientation on Android
spinlight Apr 12, 2012 7:21 AM (in response to spinlight)I guess if this is a feature in 3.3 it must be know to not work in 3.2?
http://labs.adobe.com/technologies/flashplatformruntimes/air3-3/
"Aspect Ratio Enhancements — With AIR 3.3 the issue with the runtime ignoring the specified aspect ratio has been resolved. In this release we address this use-case by allowing only screen orientation corresponding to app specified aspectRatio and orientation corresponding to 180 degree device rotation from the specified aspectRatio."
Is there a workaround? Is it possible to prevent portrait view on a landscape app under 3.2? I can't get it to not distort my app to a portrait view.

