Flash Builder 4.6 always shows blank html page on run in Google Chrome

醉酒当歌 提交于 2019-12-06 02:47:53

问题


Flash Builder 4.6 always shows blank html page on run in Google Chrome. I have tried everything but nothing works.

Kindly help.


回答1:


Simple answer: Do not use Chrome for debugging Flash Builder projects.

For debugging, do this:

  1. Go into the Debug Configurations (Run > Debug Configurations)
  2. Find the configuration for the current project
  3. Under "URL or path to launch", uncheck "Use default" and browse for the SWF (html is default). This will open the debug in the actually Flash Debug Player instead (as it happens in Flash CS)

or

  1. Open your Flash Builder/Eclipse Preferences
  2. Filter for "browser" and change any items that appear to another browser. I have had issues with Internet Explorer in the past, so I would stick to Firefox or Safari.

In my experience, this issue is almost always limited to the Debug Mode. I've experienced it once or twice with a Release Build, but the issue was, in the end, caused by the generated HTML, not by the SWF file itself.




回答2:


I got the solution, there is a security issue with chrome when html page runs on Chrome browser, So We need to set use-network=false in Flex Compiler option in the Project Properties and everything of .swf backs on stage.




回答3:


If you want to just quickly test the actual SWF build, you could turn off the 'Generate HTML wrapper file' for you project. This will cause any debug or run to use the currently installed standalone flash player to be used for preview.

To do this - right click on your project in the package explorer window, choose properties, then Flex Compiler and then just un-tick 'Generate HTML wrapper file' under the HTML wrapper section



来源:https://stackoverflow.com/questions/13064570/flash-builder-4-6-always-shows-blank-html-page-on-run-in-google-chrome

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