Air 3.5 & ios 6 - StageOrientation events firing only up&down

Recently updated my iOS app to use AIR 3.5 sdk - noticed my app wouldn't auto-orient sideways anymore. Only a complete flip would trigger stageOrientationChange events.

In the app-descriptor xml I had the line

<aspectRatio>portrait</aspectRatio>

After deleting this, auto-orientation worked in every direction again.
The behaviour is intentional, see:
http://blogs.adobe.com/airodynamics/2012/05/22/stage-aspectratio-enhancements/

Kommentare

Beliebte Posts aus diesem Blog

Play M3U8 HTTP Stream through Flash Player using apple-http-osmf

Drawing a line after an arrow that follows a path in a Flash MovieClip

Dropping Clips on Sprite Graphics V2