“Wrong wmode value” when using Starling with an AVD

匆匆过客 提交于 2019-12-11 08:53:28

问题


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.

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

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

Thanks in advance.


回答1:


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

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>



来源:https://stackoverflow.com/questions/11112634/wrong-wmode-value-when-using-starling-with-an-avd

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!