If it's event sounds, it sounds you should download them all at first.

L

Allandt Bik-Elliott (Receptacle) a écrit :
what would be the netstream method to do this please?


On 6 Oct 2008, at 12:40, Allandt Bik-Elliott (Receptacle) wrote:

hi guys

i have a quick question regarding streaming mp3s.

I have several (hundred) dynamically loaded mp3s that i've been streaming into flash using the following code:

NOTE: AS2
[code]
    private function startMouth():Void
    {
        var avatarSound:Sound = new Sound();
        avatarSound.loadSound(mp3, true);
        avatarSound.onSoundComplete = Delegate.create(this, stopMouth);
    }
[/code]

mp3 is a getter that grabs the property _mp3 which is set dynamically before the method

the problem i'm having is that the mp3s don't always stream fully and can stop before the end (and because of this, the onSoundComplete never fires).

This is for a high-use application so we expect high server-load and spikes which makes me think that streaming might not be the best way - the mp3s are between 5-8k each so i was thinking that preloading them individually before use might be better

would you agree with this or is there a better way of doing this?

thanks a lot
alz

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to