简体   繁体   English

更新到Flex 4.9.1破坏了移动设备的屏幕方向

[英]Update to Flex 4.9.1 breaks mobile device screen orientation

I recently updated my Flex SDK from Flex 4.6 to Apache Flex 4.9.1 Since then, my app doesn't respond to device reorientation anymore. 我最近将我的Flex SDK从Flex 4.6更新为Apache Flex 4.9.1,从那时起,我的应用程序不再响应设备重定向。

This is the case for the emulator as well as an actual device (I tried iPad and Galaxy Tab 10.1 ) 模拟器和实际设备都属于这种情况(我尝试使用iPad和Galaxy Tab 10.1)

I didn't change anything in the code, just switched the SDK and updated the sdk namespace in app.xml to 3.4. 我没有更改代码中的任何内容,只是切换了SDK,并将app.xml中的sdk名称空间更新为3.4。

Of course, 'autoOrients' is set to 'true' in the app-descriptor. 当然,在应用程序描述符中将“ autoOrients”设置为“ true”。

Any ideas why this happens? 任何想法为什么会发生这种情况? Did Apache change anything in the app-descriptor or Adobe in the Flash Player, I have to update? Apache是​​否更改了我必须更新的app描述符或Adobe Flash Player中的任何内容?

EDIT: Hoping to fix this issue, I updated today to Apache Flex 4.9.1 AIR 3.8. 编辑:希望解决此问题,我今天更新到Apache Flex 4.9.1 AIR 3.8。 Still no screen re-orientation. 仍然没有屏幕重新定向。 If I change the SDK to 4.6 AIR 3.4 without any code changes (except the app.xml ns, of course) it works perfectly. 如果我在没有任何代码更改的情况下将SDK更改为4.6 AIR 3.4(当然,除了app.xml ns),它就可以正常工作。

I also rebuilt the entire workspace AND project from scratch on an freshly installed Flash Builder 4.7. 我还从头开始在新安装的Flash Builder 4.7上重建了整个工作区和项目。 Didn't change anything. 没有任何改变。 Aargh! 啊!

EDIT2: Today I found out about the new SDK 4.10 and eagerly downloaded it. EDIT2:今天我发现了新的SDK 4.10,并热切地下载了它。 Changed nothing. 什么都没改变。 Still no orientation change. 仍然没有方向改变。 Also, I installed the OS X 10.8.4 Mountain Lion on my machine, didn't do anything. 另外,我在计算机上安装了OS X 10.8.4 Mountain Lion,没有执行任何操作。 I'm really getting crazy over that! 我真的为此感到疯狂! I would do anything somebody would recommend me to solve this issue, as it is a terrible show stopper for me, including scratching zeros and ones on my hd by hand! 我会做任何有人会建议我解决的问题,因为这对我来说是个糟糕的表演停靠站,包括用手在HD上刮擦零和一个! Please! 请! Give me some ideas! 给我一些想法! I'm desperate! 我很绝望!

I think that the latest AIR SDK (3.8) includes a new 2.0 compiler, and the Apache Flex SDK 4.9.1 hasn't yet been updated for it? 我认为最新的AIR SDK(3.8)包括一个新的2.0编译器,而Apache Flex SDK 4.9.1尚未为此进行更新? The AIR SDK 3.8 download page has a footnote suggesting download of the original SDK without new compiler: download page (I am using IntelliJ IDEA 12 which appears to allow use of the new AIR SDK 3.8 alongside of the original Flex SDK 4.6.) AIR SDK 3.8下载页面的脚注建议没有新编译器的情况下下载原始SDK: 下载页面 (我使用的是IntelliJ IDEA 12,它似乎允许与原始Flex SDK 4.6一起使用新的AIR SDK 3.8。)

HTH 高温超导

Finally fixed it! 终于修好了! There WAS in fact some problem / change in the -app descriptot file. 实际上-app描述文件中存在一些问题/更改。 I don't know what is was exactly but 我不知道到底是什么

  • creating a new app with the correct sdk / ns 使用正确的sdk / ns创建一个新的应用程序
  • copying / renaming / editing the newly created -app.xml in my project folder 复制/重命名/编辑项目文件夹中新创建的-app.xml

fixed it. 修复。

Nasty stuff! 讨厌的东西! Couldn't make out any difference in the two xml's, that weren't commented out, but, hey! 无法在未注释掉的两个xml中做出任何区别,但是,嘿! , it works now, so what ... ,现在可以使用,那又如何呢?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM