Solved

Are Flex files (swf) really this large, or am I doing something wrong?

Posted on 2009-07-08
3
281 Views
Last Modified: 2013-11-11
On a project we had a bunch of old interactive forms made with Flash and Actionscript 2 -- I'm not even sure what version of Flash to be honest.  It's been a long time.  Anyway, we want to update these, so Flex 3 seems like a natural given our purposes and environment.  Without even really adding AS3 or lots of features, the SWF that gets produced is like 450KB.  All I did was literally change background color, add a canvas, and then popped in a few form widgets.  I didn't even link them to anything.  In the old Flash files, the max size of any SWF is 80KB -- and that's with a lot of AS and some small bitmaps.  Am I missing something here or is Flex really that bloated?  Is there a way to remove unneeded libraries or modules or something to get the file size down?
0
Comment
Question by:Xerc
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 19

Accepted Solution

by:
Jones911 earned 350 total points
ID: 24807389
Flex is pretty large.  Its cached so its really only the first hit that's slow.  A heavy html/js page can be perhaps 100k and 450k shoudl onyl take 1-2 seconds to load.

There are also RSL where you can exclude flex libraries that are not required that can dramatically reduce swf size: http://labs.adobe.com/wiki/index.php/Flex_3:Feature_Introductions:Flex_3_RSLs
0
 
LVL 9

Assisted Solution

by:danyul_c
danyul_c earned 100 total points
ID: 24807583
Also check to make sure you haven't embedded anything (images, etc) unnecessary in the code.

Another thing that can blow it out is if you are using a lot of your own extended classes rather than the ones in the Flex Framework.

If you did a full conversion to Flex 3 from scratch I would expect it to come down from that size.
0
 

Assisted Solution

by:echostorm2k
echostorm2k earned 50 total points
ID: 24808200
You can add the EQubee plugin to your eclipse IDE which has support for flex precached libraries + papervission - away - among many others already embeded into browser you will no longer need these libraries embeded in your swf, file however that will require browsers to download the equbee plugin or EQubee browser to be able to view your swf file also you will need to wait for official beta release... Besides that you have to live with the overhead that flex adds to your swf files...
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
The goal of the tutorial is to teach the user how to how to record live broadcast.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question