ios6 にアップデートして以来、ベータ版の AIR 3.5 を取得する必要がありましたが、andではなく、デフォルトでStageOrientationEvent
のみ起動するようです。iOS 6 での向きの処理の変更について読みましたが、AIR AS3 でそれを回避する方法が見つからないようです。これが私のクイックオリエンテーションテストアプリのコードです(クイックテストのタイムラインにあるだけです):upsideDown
rotatedRight
rotatedLeft
stage.autoOrients = true
stage.addEventListener(StageOrientationEvent.ORIENTATION_CHANGE, orientationChange);
stage.addEventListener(StageOrientationEvent.ORIENTATION_CHANGING, orientationChanging);
function orientationChange(e:StageOrientationEvent):void{
var t:TraceOnStage = new TraceOnStage(stage ,"----------------");
t= new TraceOnStage(stage, "orientationChange before: " + e.beforeOrientation + stage.orientation);
t = new TraceOnStage(stage, "orientationChange after: " + e.afterOrientation + stage.orientation);
}
function orientationChanging(e:StageOrientationEvent):void{
var t:TraceOnStage = new TraceOnStage(stage ,"----------------");
t = new TraceOnStage(stage, "orientationChanging before: " + e.beforeOrientation + stage.orientation);
t = new TraceOnStage(stage, "orientationChanging after: " + e.afterOrientation + stage.orientation);
}
iPad では、上下逆とデフォルトのみをトレースする場合、ios6 までは問題なく動作していました。オリエンテーションが必要な一連のアプリがクライアントを待っている状態で完成しようとしていますが、これが起こりました! アイデアや助けをいただければ幸いです。