header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
flashking
Points:60
Posts:0

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.



1
Brad
Points: 750
Posts:0
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



Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 0+6 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions