Solved

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

Posted on 2009-07-08
3
278 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
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

813 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now