Skip to main content
Inspiring
March 25, 2013
Question

AIR event.afterOrientation broke in iOS 6.1 (simulator only)

  • March 25, 2013
  • 8 replies
  • 1491 views

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

This topic has been closed for replies.

8 replies

Adobe Employee
March 26, 2013

Can you please elaborate what do you mean by not responding to the afterOrientation property? Is not printing the correct value or the apps hangs after you use the property?

gtrAuthor
Inspiring
March 26, 2013

Hi,

No code will run. (ie: in the above example, it won't trace the message).