PDA

Click to See Complete Forum and Search --> : flash file size too large...


swampart
12-13-2007, 11:09 AM
Hi i was wondering if there is a way to make the file size of my .swf movie a bit smaller?

It is the first flash movie i made (im so proud!!) and it is just a simple image fade in and out to go at the top or bottom of a website (700 px x 200 px wxh)

When you add up the 5 images i have used to create it they equal just under 900kb and the .swf file itself is 888kb.

What steps can i take to make the overall .swf file size smaller?

I am thinking that 888kb is way too big to put onto a website?

Thanks in advance...

Crimson
12-13-2007, 12:07 PM
How are you creating your images? Sounds like that is your math- It is in the image files. Yes Vector is smaller but it has to add in all the raster images you put in there. If you are scaling down your image any than make them to size in photoshop and use the save for web feature. I like to use pngs and gifs- what ever I can make the smallest.

swampart
12-13-2007, 12:15 PM
i have been saving them thru adobe "save for web" feature and saving as a jpeg


Ah okay i will try and make it into a png and reduce the quality of the image a little and see if it makes a difference. Thanks very much for your reply.

Im probably getting a 200x700 photograph to about 120-200kb with the way i have been doing it.....

DesignVHL
12-13-2007, 02:33 PM
try reducing the compression of your jpegs to about 75 or so, that should decrease image sizes. Some people say to export your file w/ compression, but I never do. I optimize in PS and publish without the added jpeg compression.

You could try the PNG route also...however if there are too many colors, file size will end up larger than a jpeg sometimes, and quality won't be where you want it to be at....thats just from my experience. I think that if you saved each img down more and not at 100, your file size could be brought down a lot.

cjoe
12-14-2007, 01:44 AM
you could load your images from an external file, using XML.

swampart
12-14-2007, 01:58 AM
Thanks for that DesignVHL, i will give it a go later on today.


you could load your images from an external file, using XML.


How would i set up the flash file to get the images to load from a external file?

cjoe
12-14-2007, 02:09 AM
http://www.lukamaras.com/tutorials/actionscript/ultimate-dynamic-image-gallery.html

using the principles explored in this tutorial. You can just jig the actionscript to cut out all the fanciness that this tutorial does.

DesignVHL
12-14-2007, 02:52 AM
good suggestion cjoe as well.