Sound advice needed

no pun intended!

I’m trying to create something to the effect of what they have over at Goldspot.net but I’m running into a few snags.

Mostly my problems stem from loading/buffering. Like that site, I want to have full (or near full) quality mp3s without much wait. I used a technique like the one in the tutorial here, but that way the sound has to load completely (which is not bad, but not exactly what I want either).

Plus, that technique requires putting the audio in a frame itself, which doesn’t allow me to use actionScript functions to make a progress bar for the sound, etc. like on Goldspot.net.

So… anyone got any suggestions???

If you use this tut:
http://www.kirupa.com/developer/mx/loading.htm#Load%20.mp3%20dynamically%20with%20Flash%20MX:
Your mp3 will start playing as soon as it loads enough. For the progress bar, I just asked someone else if you can add a preloader to something that you are loading in. Makes me wonder if you can use something like:
[AS]
_root.musicVariableName.getBytesLoaded
and
_root.musicVariableName.getBytesTotal
[/AS]
And work from there. Anyone? Digitalosophy?
I’m at work so I don’t have flash, otherwise I would just try it.
(-:

hmmm… interesting idea. I’ll do some experimentation and let you know what happens.

Good idea!! Thanks a lot!! :slight_smile:

Daedelus,

Check out these two examples from actionscript.org sounds like what your trying to do:

However, I have found that you will get the best performance (load times) loading swf files containing your mp3 and not loading an external mp3 file directly. You will loose quality by loading the swf but load time is much better – loads/plays smoothly over 56k on my tests. Just depends what your targeting broad banc users I suppose…

After nearly pulling all of my hair out, I finally got a preloader for sound files. No one ever told me that Sound objects could use getBytesLoaded and getBytesTotal!! :crazy:

Anyway, I took a few days off after trying what I thought was nearly everything, and I came up with this:

http://www.7crescent.com/flowever/summerDreamMP3.html

Thanks guys! Oh, and byis, that’s some good advice about loading into swfs… my plan is to have one mp3 for high bandwidth and one for lower bandwidth… so I guess I’ll keep running with that for now… we’ll see what happens if I get too many complaints!

:beam: Cheers!

Did you use what I suggested? Because that’s pretty good!! If you used the getBytesLoaded/getBytesTotal thing; I would like to know if it’s that smooth!!

sorry i came in a little late, you shoudl be using external mp3’s to load your audio. this way no wait…

looks soemthing like this:
[AS]
x = new Sound();
x.loadSound(“music.mp3”, true); // true = streaming
x.start(0,99) // times looped
[/AS]

hoep i wasnt too late :slight_smile:

You’re too late…:stuck_out_tongue:

lol i thought so