问题
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:
- Go into the Debug Configurations (Run > Debug Configurations)
- Find the configuration for the current project
- 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
- Open your Flash Builder/Eclipse Preferences
- 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