Make sure that you are not generating profiling or debugging code in your SWF by setting the following to false in Flex-config.xml:
 
        <generate-debug-swfs>false</generate-debug-swfs>
        <generate-profile-swfs>false</generate-profile-swfs>
 
When I turn those on, a tiny app (~128K) gets about 20K larger.
 
matt horn
flex docs


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of alex_harui
Sent: Tuesday, July 12, 2005 5:11 PM
To: [email protected]
Subject: [flexcoders] Re: Filesize generated swf's

An empty Application tag should come in at about 128Kb.  Not sure why
you got 263Kb.  You sure you didn't have any custom theme attributes
on the application tag?

At any rate, starting from 128K, you'll hit your 150K limit really
quick.  However, I encourage you to consider the following:

1) Broadband is here.  The main reason for a 150K limit is download
time.  More and more people are accessing your site over fast
connections where 150K only represents 1/2 second or less

2) Flex/Flash is streaming media.  The user will see the download
progress bar, which you can customize, very quickly, long before the
app has been fully downloaded over slow links, so you can present
something to the user faster than you could trying to get one 150K
HTML page parsed and rendered

3) Flex is not page-oriented.  Thus once you get the SWF downloaded
you don't have to go back to the server for the next screen full, it
is already there.  This is often much better than having to make the
user wait as you go get the next 150Kb HTML page, and the one after
that.

Flex is a new paradigm.  It will require you to think a little
differently and design your apps differently, but you will probably
find that there's a payback in terms of usability and productivity on
the part of your users that is not achievable in the HTML paradigm.

-Alex


--- In [email protected], "Joost Nuijten" <[EMAIL PROTECTED]>
wrote:
> Hi,

> We are working on a Flex-based website. We've discovered that the
generated
> SWF's are at least 400Kb. This is too large. According to usability
rules a
> webpage should exceed 150Kb per page.

> We created an empty mxml-template (containing only a mx:application-
tag) and
> the filesize was still 263Kb. Does anybody have an idea how to
reduce the
> filesize?

> One thing that will help is to remove all the @embed-codes and load
images
> at runtime. But that's not enough to get the filesize down to 150Kb.
>
> Regards,
> Joost Nuijten




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to