如何将移动AIR应用程序保持在横向模式?

我似乎无法find任何方法来迫使它一直走景观模式。 当我到MyApp-app.xml并编辑<aspectRatio></aspectRatio>标签到横向时 ,只有主视图是美化的。 如果我导航到第二个视图,它将回到肖像 。 任何帮助?

您可以在文档的属性上进行设置。 进入文件>发布设置>点击configuration播放器(“Air for Android”,“Air for iOS”,“Flash Player 11”等)。 现在,标记“汽车方向”。

喜欢这个:

在这里输入图像说明

现在,保存和testing。

设备可能是一个巨大的因素。 你有什么设备的问题?

也就是说,除了将aspectRatio设置为横向之外,我还会尝试将autoOrients设置为false:

  <!-- 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>