PDA

View Full Version : Playing sound while loading


robUx4
04-13-2001, 12:44 PM
Is there a way to start playing a sound while it's loading ?

I have to integrate a 5 minutes track into a very basic flash animation. And it's really boring to have to wait for the whole track to be loaded to start using it. Especially because the track have a slow fade-in, so nobody will notice it's there, unlesse you wait for the whole thing to be loaded...

Is streaming the clue ? (doesn't seem like with the previewer in Flash 5 + streaming)

Is loading a flash anim (level 1 or more) efficient to enable the loading in paralell of 2 or more .swf ?

Jesse
04-14-2001, 04:01 AM
You can use streaming sounds but this may result in jagged playback as the sounds might not have time to buffer correctly...

Insert your sound and select the streaming method. I've foundn the best way to do this is actually to create a blank MC and insert the sound in there, because with the streaming method you have to have a sufficient number of frames in the clip to play through the whole sound. So if you have a frame rate of 15fps, and a 2 second sound, you will need 30 frames to play the sound fully, and you don't want to go adding 30 empty frames to yourmain timeline. So create an MC with 30 frames, put the sound (streming) in the first frame, and put the MC on your stage.

Cheers

Jesse

robUx4
04-14-2001, 09:06 AM
Thanx !

I think it should work. I've put the sound in another flash animation. But I've found out that even in RAW mode, my WAV file doesn't sound exactly the same as the original :( (MISE vs Winamp) It's a bit subtle, but you can hear more trebble than it should :(

By the way, if I load the sound/SWF at level 1, does it have to use the same framerate as the main SWF ?

Jesse
04-14-2001, 11:07 AM
Yeah it does, it will default to the main movies FPS anyway (or at least it did in Flash 4...)

Cheers

Jesse