AIR event.afterOrientation broke in iOS 6.1 (simulator only)
I've noticed AIR is not responding to the "afterOrientation" property for stageOrientation events in the iOS Simulator for SDK 6.1. (was previously fine with a iOS Simulator target of iOS SDK 5.1.)
Fortunately, everything seems to be working (so far) on an actual 6.1 device, although it would be nice if I could figure out how to get it working on the Simulator for testing.
Anyone else notice this? Any suggestions?
Thanks.
--------------------------
PS. Specific code is:
stage.addEventListener(StageOrientationEvent.ORIENTATION_CHANGING, orientationChanging);
function orientationChanging(event:StageOrientationEvent):void
{
if (event.afterOrientation == StageOrientation.ROTATED_LEFT || event.afterOrientation == StageOrientation.ROTATED_RIGHT)
{
trace("landscape");
}
}
Message was edited by: gtr --- added code sample
