5/16/2011 9:24:41 AM
Title:
Compress swf file - Eclipse
Hi Everyone,
I am using eclipse with flash builder 4 plugin to developed FLV Player (flex project - mxml). Project type used is Dynamic Web Project. There are two folder, one for server (java) and other one for client (swf one). I'll be using this swf for streaming video.
Now under bin-debug folder, I can find the swf file whose size is around 974 KB which I think is fine since for debugging purpose metadata is required. But, under bin-release, the swf file size is around 422 KB which I think is a lot. I have seen players with 36 KB size.
I am not using much graphics, just button images for play, pause, record. Each being of size 4KB.
Do I need to make any settings change in eclipse before creating the release build. For creating the release version, I am selecting the flex project client version, then export -> Release build. Any tools recommended?
Please let me know, how I can compress the swf further? It won't be a good idea, end user downloading the entire half MB swf everytime.
Thanks.
5/17/2011 8:03:14 AM
when you use eclipse for building flash application that means you are using flex or flash builder which uses framework that's integrated in the swf files created. The framework is around 300kb. The only possible way to reduce the file size is to use RSL. Using RSL will reduce the flash framework size from the file so you file should be reduced to around 120 kb. For more information on using RSL in your project see this link :
http://askmeflash.com/article/9/optimize-flex-swf-filesize-performance-loading