Music problem

alright, we’ve got a movie for a webpage and a character on the beginning who’s a button for the music to be on and off, like when you click him he turns it off and then again he starts playing it and turns the music on again.

that’s in the first scene. when you’re on say scene 4 and hit the back button to go to scene 3, it repeats the music so it’s playing two times at the same time, which we don’t want. we want it to play smoothly so we can go without a difference in the music and it only to be on/off from the first scene.

hope that’s not confusing, any help would be appreciated.
thanks

anyone?

Let me see if iget the idea…
Scene 1: U can control sound on/off
Scene 4: u cannot control sound on/off
When u go from scene 4 to 1, music keeps playing instead of restarting.

is dat correct?
:-\

we got it to restart now, but it starts over. we’re using stop all sounds on the back button

i still cant get the idea… can u explain it more clear?
:slight_smile:

if you put your sounds in the frames then add an extra frame with stopallsounds;).If the sound is loaded through a script then you simple say something like inside the button that controls the sound:
loop2.stop();
loop1.start(0, 99);

I usually make a lot of functions(especially if i have a lot of loops) and simply control the loops with the functions.:thumb:

alright, here’s the file:

http://www.error42.com/test1.swf

it plays the first time from the start and can be turned off and on again from the horseman on the right, the satyr.

if you go threw it, into the castle and then again threw rooms then try to go back with the arrow at the bottom left the music stops and starts over again which sounds bad. we want it to continually play threwout the whole thing without starting over again.

well you dont say how your loading your sound file. are you loading it dynamically or by attach.sound , and where are u declaring this? hit me on AIM i wil be on for a few