Basically, the entire SWF must be downloaded to show up.  Flex SWFs default to 
2 frame SWFs.  The first frame should show the preloader, the second shows the 
app, and all embeds are in the second frame by default.

Also see last paragraph of this post and its example. 
http://blogs.adobe.com/aharui/2008/09/using_the_flex_builder_3x_prof.html

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Nate 
Beck
Sent: Tuesday, December 02, 2008 4:45 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Load time, multiple redundant Embed() calls, etc.


Anytime you Embed anything, you're including it within your swf.  It may get 
compressed a little bit, but you're still embedding it.  That means your SWF 
file will contain all of the images that you used [Embed(source="foo.png")] on.

Using Embed is not like HTML where you have your images in a directory and then 
your swf calls them at runtime.

Also, use vector graphics as much as you possibly can.

Cheers,
Nate
On Tue, Dec 2, 2008 at 12:55 PM, Eric Cooper <[EMAIL PROTECTED]<mailto:[EMAIL 
PROTECTED]>> wrote:

Hi,

I have inherited some code and it seems to build into a fairly large .swf and 
takes a very long
time to download. Running locally, things go fairly quickly - but not so 
remotely. Part of this
may be due to slow server and net connection - but I am not able to change 
those any time
soon.

So, I wonder two things:

1. Are there tools for highlighting cause of slowness of download (e.g., areas 
of bloat in
code)?

2. If the code is rife with [Embed(source="foo.png")] - where same 'foo' is 
being embedded in
multiple files - would cause bloat? And would it be better to have one managing 
singleton
that embedded all images?

Thanks!
-Eric


Reply via email to