开发者

generating swf files

开发者 https://www.devze.com 2023-02-16 23:10 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号