generating swf files
I have a flex webservice project 'simpleWebApp' running on the tomcat server. The simpleWebApp.swf file generated is in the webapp root folder of tomcat and it executes perfectly when i double click on the simpleWebApp.swf file
now i need the generated simpleWebApp.swf file to run w开发者_开发知识库hen placed anywhere, any location. what i need to do?
Copy the .swf and .html file to a folder(say testApp) inside your server's deploy folder.Then access your application http://localhost:8080/testApp/.swf.This works perfectly for me.
You will need to have correct path to the server where you webservice will be located, it's better to have this as a variable and path it in the flash vars to your swf. Also you may need crossdomain.xml, to be able to access you server from flash in a case if anywhere != yourserver
Another way what i did is, in the flash builder i went to project/Export Release Build which Builds and export an optimized release-quality SWF file. now when i place release build folder anywhere, my swf file works.
精彩评论