如何保持在横向模式下我的移动AIR应用程序? [英] How do I keep my mobile AIR application on landscape mode?

查看:190
本文介绍了如何保持在横向模式下我的移动AIR应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我似乎无法找到任何办法迫使它去风景模式下,所有的时间。当我去的MyApp-app.xml中并编辑<的aspectRatio>< /的aspectRatio> 标记为风景,只有主视图园景。如果我定位到第二个视图,它变成回到人像。任何帮助?

I can't seem to find any way to force it to go landscape mode all the time. When I go to MyApp-app.xml and edit the <aspectRatio></aspectRatio> tags to landscape, only the main view is landscaped. If I navigate to the second view, it turns back to portrait. Any help?

推荐答案

您可以在文档的属性进行设置。转到文件>发布设置>点击配置播放器(Android的AIR,空中的iOS,Flash播放器11等)。 现在,选中自动Orietation。

You can set it on Properties of the Document. Go to File>Publish Settings> Click on Configuration Player ("Air for Android", "Air for iOS", "Flash Player 11", etc). Now, mark the "Auto Orietation".

这样的:

现在,保存和测试。

这篇关于如何保持在横向模式下我的移动AIR应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆