Sound issue

i used the volume adjusting/slider bar thing on my website (tutorial found from this site). However, i want the music to keep playing when i change scenes. Anyone know how to do this?

oh and one more thing, is there a way to automatically start the song at a certain volume without having to hit play first?

thanks,
Roman

Is this the tutorial you used? http://www.kirupa.com/developer/mx/volume_slider.htm

I’ve never used scenes so I’m not sure if it would work for your setup, but on the site I’ve been playing around with I turned my mp3’s into swf’s with individual preloaders and used loadMovie to play them in an empty mc so the entire site could be navigated while they played. This also allows me to add some visuals directly to the song if I ever want. Eleven different buttons can load eleven different songs to my “container” clip and a simple unloadMovie command can stop the music at any time.

As for the volume control, I also used the above tutorial only I changed the code to the following so the music would start at half volume until the slider is moved and takes over. (adjust slider drag bar accordingly if so desired)

onClipEvent (load) {
	mySound.setVolume(_root.volume = 50 );
	mySound = new Sound();
}
onClipEvent (enterFrame) {
	mySound.setVolume(_root.volume );
}

This has worked great for me but without knowing all your details I’m just kinda guessing… hope it helps a little.

yeah that is the tutorial i used. ok cool, the volume code worked, thanks for that. any insight on how to have it start automatically once it is loaded?

i tried doing that whole swf thing, but i dont think i did it right. that can stil be used with the volume slider-bar?

Whatever code your using now to start your sound try just placing on a frame that your movie stops on. In my example above if I wanted the music to start automatically I would just put

container.loadMovie ("song1.swf"); 

on my “container” frame. If your using loadsound it should be something similar… I think? I’m really not too good with sounds yet, heh.

And the above volume tutorial works great for swf’s. Volume is volume after all. :slight_smile:

[edit] forgot the dang semi-colon