2012-02-12 8 views
0

私はそれがいつでもランドスケープモードに移行するような方法を見つけることができません。 MyApp-app.xmlにアクセスして<aspectRatio></aspectRatio>タグをの風景に編集すると、メインビューのみがランドスケープされます。 2番目のビューに移動すると、のポートレートに戻ります。どんな助け?モバイルAIRアプリケーションをランドスケープモードにする方法を教えてください。

答えて

0

デバイスがこの点で大きな要因になる可能性があります。どのデバイスに問題がありますか?

<!-- The initial aspect ratio of the app when launched (either "portrait" or "landscape"). Optional. Mobile only. Default is the natural orientation of the device --> 
    <aspectRatio>landscape</aspectRatio> 

    <!-- Whether the app will begin auto-orienting on launch. Optional. Mobile only. Default false --> 
    <autoOrients>false</autoOrients> 
+0

tboth aspectRatioとautoOrientsを正しく設定しました。しかし、私が次のビューに移動すると、それは肖像画に戻る。私はiPhone 4デバイスを目指しています。 – Propeller

+0

サンプルをまとめて問題をデモし、コードを表示します。 – JeffryHouser

+0

さて、全部FXPにエクスポートしました。こちらをhttp://www.mediafire.com/download.php?26a6j1ouo61b7kwからダウンロードできます。 – Propeller

1

ドキュメントのプロパティでそれを設定することができます:風景にアスペクト比を設定することに加えて、私はfalseにautoOrientsを設定しようとするだろう、と述べた

。 [ファイル]> [公開設定]に移動し、コンフィグレーションプレイヤー(「Air for Android」、「Air for iOS」、「Flash Player 11」など)をクリックします。 "自動オリエンテーション"をマークします。今

enter image description here

、保存、およびテスト:このように

関連する問題