PDA

View Full Version : size question?


413core
5-9-02, 05:36 PM
Let me start by saying I'm new to flash...Ok, now I am making a whole flash site. I added a MP3 to the page and it made the .swf file 4mb. that is gonna take forever for people to down load the page... not the mp3, the page. So my question is: is there anyway to compress it or import the mp3 so it doesn't change the size of my .swf file so dramatically?

lvm
5-9-02, 07:44 PM
4mb - that's not gonna make you very popular!

There are a number of ways to reduce the audio size embedded into the swf, I try to resample the source MP3/Wav down to the lowest bitrate that I can without noticeable loss of quality. I find that I can convert a 16bit 41000 wav down to 4bit on most and still have decent audio and the file size diff is dramatic.

Also if you can find audio loops you can repeat seamlessly is a good way to go.

Here's a sample flash interface I was messing around with that will give you an idea of how fast the audio loads by being compressed down to 4bit.

My Door Demo Project (http://www.pageperf.com/door/index.html)

If you want to send me a URL I can download the audio file I will see how much I can compress it and send it back to you.

Regards,

Mike

413core
5-9-02, 07:58 PM
thanks for helping out... I liked your design there, that is nice. I will e-mail you a direct link to the MP3 :) I would like to do something similar to how you have multiple tracks set up, but I didn't think it would be possible once I found out how big this one song made my movie. But if there's a way to make the songs smaller, I think I can make it work :)

wishstar99
5-13-02, 05:56 AM
hi,
i went to your website. Great.
i have problem with my flash button. in which folder do you have your .swf files? i tried to put them in the images and put the src=/images/button1.swf but it doesn't work. it keep loading and loading ... can you help?

WS

413core
5-14-02, 02:34 AM
I keep everything in one folder. I Don't have to many pages or images so it's fairly easy to keep track of. I write:

src="button1.swf"

and everything seems to work fine for me. I hope that helped you some.

SimCoWeb
5-16-02, 03:05 AM
Here's what you can do to reduce your .swf file size. First, there's no way to get a complete mp3 into a Flash file without it having a humongo download time. Do as lvm stated and use looping audio files. These might be 3 - 8 second bits of music that, when looped, sound like a complete song. The trick is, the looping doesn't add to the file size. It's just an instruction passed to the audio loop on how many times to repeat.

You can 'mix' audio files.. for example, a 3 second soft intro then it's followed by 8 seconds of head banging guitar riffs...then mellow out to some strings.

Sound files are huge no matter what format you use. Get some great, and free, sound loops and music at:

www.flashkit.com

Believe it or not, that site pushes 100 Gigs a day in bandwidth. Talk about a mean bill at the end of the month ;)

use4free
5-17-02, 06:05 PM
Hi,,,
You can make the mp3 file in java script <<
into the same swf page...
so the java script too fast with the big files.
Thanks,,,

413core
5-17-02, 06:21 PM
Originally posted by use4free
Hi,,,
You can make the mp3 file in java script <<
into the same swf page...
so the java script too fast with the big files.
Thanks,,,

Please explain how to do this?