“错误的 wmode 值"将 Starling 与 AVD 一起使用时 [英] "Wrong wmode value" when using Starling with an AVD

查看:34
本文介绍了“错误的 wmode 值"将 Starling 与 AVD 一起使用时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在使用通过 Flex/AIR SDK 和 Starling 设置的 FlashDevelop.我已经使用了 AIR for Android AS3 模板并成功编译了测试应用程序,而没有完美地初始化 Starling.这些应用程序在我的 Android 虚拟设备上运行良好.但是,一旦我初始化 Starling 实例,错误此应用程序未正确嵌入(wmode 值错误)"就会出现在屏幕中间的红色条中.我浏览了 Starling 论坛并设置了 direct,但我仍然收到错误消息.我还设置了 -swf-version=15,但仍然出现错误.真正奇怪的是,当我使用 FlashPlayer 11 进行编译时,一切正常.只有当我在 AVD 上编译和安装时才会出现错误.在 _starling.start() 语句之前,我的调试器 logcat 中的跟踪输出仍然正常.

I am currently using FlashDevelop set up with the Flex/AIR SDK and Starling. I have used the AIR for Android AS3 template and have successfully compiled test applications without initializing Starling perfectly fine. These applications run fine on my Android Virtual Device. But as soon as I initialize a Starling instance, the error "This application is not properly embedded (wrong wmode value)" shows up in a red bar in the middle of the screen. I've looked through the Starling forums and have set direct, but I am still getting the error. I have also set -swf-version=15, and I still get the error. What's really weird, is that when I compile with the FlashPlayer 11, everything works perfectly fine. Only when I compile and install on the AVD does the error show up. Trace output still appears fine in logcat, my debugger, before the _starling.start() statement.

如果我的解释不清楚,这个人似乎也有类似的问题:http://forum.starling-framework.org/topic/wmode-issue-with-rendering-mode-direct

This person seems to be having similar problems if my explanation wasn't clear: http://forum.starling-framework.org/topic/wmode-issue-with-rendering-mode-direct

是的,我已将 AVD 设置为使用 GPU 加速.

And yes, I have set my AVD to use GPU acceleration.

提前致谢.

推荐答案

您现在可能已经解决了这个问题,但以防万一其他人遇到此线程...

You've probably sorted this out by now, but just in case anyone else comes across this thread...

进入你的 *-app.xml 文件并搜索 <!--<renderMode></renderMode>--> 取消标记并在标记之间直接添加它看起来像 direct

Go in to you *-app.xml file and search for <!--<renderMode></renderMode>--> untag it and add direct between the tags so it looks like <renderMode>direct</renderMode>

这篇关于“错误的 wmode 值"将 Starling 与 AVD 一起使用时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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