General Tips and Techniques to Minimize Flex Application Sizes

I really like the Flex framework, but I usually process SWF files of ~ 500KB.

I don’t know at what point the file is considered “too large” to be served on the Internet, but I would suggest that downloading 500K just to use a web application would certainly annoy some users.

Are there any tips or techniques for reducing the size of compiled SWFS?

As a side note, a 500KB SWK file is really not that big ...

+4
source share
4 answers

This may help you: http://www.onflex.org/ted/2008/01/flex-3-framework-caching.php

Most likely, the user has already encountered a packed structure before, so it will be cached. At least they won’t have to download it from their site again.

+3
source

This answer is a little more general than what you are probably looking for (it applies to all web applications, whether based on Flash / Flex or HTML / CSS / JS or something else), but ...

It depends on your application. Is this an application that will download all day and update it if necessary (for example, Gmail), or is it something that will be launched, used, and then closed?

If the first, in addition to reducing the size of resources, you are probably good here. It makes sense to download everything right away, rather than expecting the user to endure delays at every step.

If the latter, you should be lazy as much as possible. In other words, for example, instead of embedding all the application’s graphics in SWF, load them using URLRequest or any other method needed when they are needed. A faster start will “feel” faster and more than compensate for increased HTTP requests in a short time.

+1
source

I can come up with two things to try.

First do not create EMBED images, fonts, or other SWF files. This will cause them to load at run time, so this may affect page load performance, but there will be less SWF.

Also try to break the application into several modules. I know this improves the performance of the initial boot time, but I don't know if the size of the top-level SWF decreases.

+1
source

Here I have found many ways to reduce the size of the swf flex file. Check out this link:
http://askmeflash.com/article/9/optimize-flex-swf-filesize-performance-loading

0
source

All Articles