Air 2.6 Screen orientation
I'm trying to get this Air 2.6 feature to work again.
http://kb2.adobe.com/cps/891/cpsid_89107.html
Changes in AIR 2.6
Screen orientation changes in 2.6 namespace
Based on the release doc, it says "The swf is required to be compiled with the flag "-target-player=11" to make use of supportedOrientations API."
How do I "compile with the flag" ???
I'm using Flash CS5 to publish .swf
I got the adt cmd line working.
My AS3 script:
addEventListener(StageOrientationEvent.ORIENTATION_CHANGE, onOrientationChange);
function onOrientationChange(event:StageOrientationEvent):void {
trace("onOrientationChange:"+event.afterOrientation);
...and process result.
}
}
Thanks,
Alfred