Music in the Background Flash MX

Hi guys/girls:

I am making a projector and I have a loop to run in the background to play INDEPEDENT from the timeline of my main movie. How does this work? I will be putting some voices (external .sfw’s) that goes in sync with text that will be loaded but I want the background to stay playing.

Thanks a lot.
I hope the answer will help others.

Sagit.

take your sound, stick it in the library, assign it the linkage name “sound” and stick the following in the first frame
[AS]
mySound = new Sound (this);
mySound.attachSound(“sound”);
mySound.start(0, 99);
[/AS]

Thanks a lot, it does work when I put it in my main movie (content) that holds the rest of the swf’s. But when I do a “replay” it doesn’t really start from the beginning of the loop music but continues on like nothing happen. But it works just fine.

Thanks a lot guy.
Sagit

yeah. if you want it to start over, change the code to this
[AS]
mySound = new Sound (this);
mySound.attachSound(“sound”);
mySound.stop();
mySound.start(0, 99);
}[/AS]

glad to help