StageOrientationEvent strange behaviour
Hate to bring this up again but I've been tearing my hair out trying to get to the bottom of this.
We are developing a game that needs to be submitted to the apple app store, so we also need to support the two possible landscape modes.
I've been using the snippets mentioned here http://forums.adobe.com/message/4007439#4007439 and here http://www.adobe.com/devnet/flash/articles/screen_orientation_apis.html but so far nothing is stopping the app from using portrait mode when it feels like it wants to.
Couple of special mentions,
When testing on android and listening for StageOrientationEvent.ORIENTATION_CHANGING I get nothing. This event just doesn't fire at all.
However, StageOrientationEvent.ORIENTATION_CHANGE does fire. If I try to intercept this with the following
if (e.afterOrientation == StageOrientation.DEFAULT || StageOrientation.UPSIDE_DOWN)
{
e.preventDefault();
}
it prevents the stage rotation on the first event, but on further changes it appears to ignore preventDefault(); and jumps to one of the portrait modes.
I'm currently trying to debug on an iPad as well but can't see the traces as yet. Either way, neither of these methods seems to give the required (or indeed needed) behaviour.
I've broken just these bits out to a seperate test app in order to test and am happy to drop that somewhere if someone can suggest a fix.
In the meantime any tips at all would be greatly received. Thanks in advance,
Mark
