all groups > flash (macromedia) > august 2005 >
You're in the

flash (macromedia)

group:

Continuous ound loop over scene changes?


Re: Continuous ound loop over scene changes? tralfaz
8/19/2005 3:58:34 PM
flash (macromedia):
[quoted text, click to view]

Make an swf file that contains nothing but the looping sound file..
1) import mp3 or wav into library
2) frame 1, properties, chose that sound, loop 0 (indefinite)
3) Save it as something like "sound.swf"
It can be small size..no graphics

Then in the main swf, load it into a level:
loadMovieNum("sound.swf",3); // load the background sound into level 3

It will play indefinitely, regardless of what scene _level0 is
showing.
If you want it to stop, unload it's level or stop all sounds.

on (release)
{
unloadMovieNum(3); // unload level 3
// OR this instead
stopAllSounds();
}

Make sure you don't loop to the loading code again though. Prevent it
like this if necessary..

if(!initialized)
{
loadMovieNum("sound.swf", 3); // load sound into level 3
initialized = 1; //block repeating of this loading
}

tralfaz

Continuous ound loop over scene changes? duckumu
8/19/2005 9:00:37 PM
I was given a flash file that has 6 scenes in it, and the client wants a
continuous sound loop through the whole thing. My experience with flash is
pretty minimal, and anything I've done so far hasn't had sound involved.

My question is: is it possible to have a sound loop play continuously even
over scene changes? It is my understanding that sound loops are usually places
in a layer in a frame in one scene, but I assume that if the scene is changed,
the sound would stop.
AddThis Social Bookmark Button