Thursday, October 1, 2009

How to reduce the size of SWF file in flex

you are using  flex and you dont know how to reduce the size of the swf file?..here is the solution for that problem ..

Using RSL in your Project - Runtime Shared Libraries:- Its a flex framework library which contains files required during runtime of flex application. The advantage of RSL is that it’s downloaded once only. RSL simply reduces the file size by approximately 500kb. Implementing RSL is very easy :

GOTO Project -> Properties -> Flex Build Path -> Library Path and select "Runtime Shared Library (RSL)" from the "Framework linkage" combobox.
Press OK and you are done. Now application compiles and creates a framework (swz) file along with swf file looks like framework_3.2.0.3958.swz.

Now you must copy this file to your webserver along with your swf file from where it can be downloaded.
One most important thing is that you must have swz file extension added to your webserver. So that it can be accessed using url. Check that by using your website paths to framework if it can be saved to your disk then its fine else get it fixed first from you web administrator.


RSL is not a only solution for reduce the size , lot of ways available for further details read the links...

http://www.cftips.net/post.cfm/reduce-flex-3-swf-size-by-using-rsl
http://askmeflash.com/article_m.php?p=article&id=9
http://forums.adobe.com/message/2235813
http://labs.adobe.com/wiki/index.php/Flex_3:Feature_Introductions:Flex_3_RSLs

No comments:

Post a Comment