2012-02-12 33 views

回答

0

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

这就是说,除了设置的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> 
+0

我已经正确设置了tboth aspectRatio和autoOrients。但是,如果我转向下一个视图,它将恢复为肖像。我正在瞄准iPhone 4设备。 – Propeller 2012-02-13 14:43:23

+0

放在一起示例来演示问题并显示代码。 – JeffryHouser 2012-02-13 23:51:48

+0

好吧,我把整个东西输出到FXP,你可以在这里下载http://www.mediafire.com/download.php?26a6j1ouo61b7kw。 – Propeller 2012-02-14 03:42:42

1

你可以把它放在文档的属性。进入文件>发布设置>点击配置播放器(“Air for Android”,“Air for iOS”,“Flash Player 11”等)。 现在,标记“Auto Orietation”。

像这样:

enter image description here

现在,保存和测试。

相关问题