Sunday, July 10, 2011

Remove unused file from the .swf file

Basically we have seen in flex sdk 4 and sdk 4.5, when we compile the flex code lot of unused file is also embedded into the .swf file . These unused file increases the .swf file size that mean when we will use this .swf file then this will take lot of time for load that we have normally seen.

For solve this problem follow the following steps.

1) In flash builder 4 or 4.5 click on the Item"project" in menu bar

2)select option "Export" release Build"

3)new window will be open here you can give the name of the export "release build folder" By default name of release folder is bin-release. click on finish.

You can use this release folder same as the bin-debug folder.here .swf file size is 45 to 50 % less then the bin-debug folder .swf file.

No comments:

Post a Comment