Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cassandra/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Mobile 如何在Flash builder移动应用程序上强制使用横向视图_Mobile_Flash Builder_Xoom - Fatal编程技术网

Mobile 如何在Flash builder移动应用程序上强制使用横向视图

Mobile 如何在Flash builder移动应用程序上强制使用横向视图,mobile,flash-builder,xoom,Mobile,Flash Builder,Xoom,我正在使用Flash Builder构建一个移动应用程序。我正在测试摩托罗拉Xoom。当应用程序在连接的Xoom上打开时,它以正确的方向(横向)打开,但当它在模拟器中的计算机上打开时,它是向后的(纵向) 我已在*-app.xml中指定了比率和方向: <aspectRatio>landscape</aspectRatio> <autoOrients>false</autoOrients> 景观 假的 我假设这是一个bug,但可能是我遗漏了什么,或

我正在使用Flash Builder构建一个移动应用程序。我正在测试摩托罗拉Xoom。当应用程序在连接的Xoom上打开时,它以正确的方向(横向)打开,但当它在模拟器中的计算机上打开时,它是向后的(纵向)

我已在*-app.xml中指定了比率和方向:

<aspectRatio>landscape</aspectRatio>
<autoOrients>false</autoOrients>
景观
假的

我假设这是一个bug,但可能是我遗漏了什么,或者可能有修复程序。

在我的情况下,两者都不起作用。因此,对于桌面版本,我做了一件丑陋的事情:在
title
属性之后,将
aspectRatio
属性复制到其他属性之上。我不知道房产的位置是否重要,但它是这样运作的

这种方法只有一个问题:在构建应用程序的调试版本时(包括在移动设备中),一切都可以正常工作,但在构建发布版本时,会出现一个错误,表明
aspectRation
属性是意外的。只需删除其中一个,构建就会工作

就为了注册,为了让它在移动中工作,我还必须在代码中设置属性
aspectRatio
,如下所示:

stage.setAspectRatio(StageAspectRatio.LANDSCAPE);

我也面临同样的问题。模拟器没有以默认方向打开横向。当前模拟器的操作似乎与您在app.xml文件中设置的相反。我在4.5中没有注意到这一点,也许这是4.6的一个bug?