Help Meeee!

hi there,

ive just tried a tutorial of Kirupa for a volume slide feature, take a look:

http://www.kirupa.com/developer/mx/volume_slider.htm

basically ive done it succesfully except for knowing afterwards that it was being aimed at one partucular sound loop…

is there any adjustment or anything i need to do in order to make this volume slider adjust the volume for all sounds within the swf file??

could someone help me out,…i would really appreciate it!! :beam:

thnx in advance!! :slight_smile:

I haven’t looked at the tutorial, but I have one on my site that has four songs on it. The mp3’s are loaded in using:


mySound.loadSound("thunderstruck.mp3");

everytime I change the song, I load in a new song like:


mySound = new Sound();
mySound.loadSound("sugar.mp3");

The volume slider is going to point to one variable - make that variable the same one that you load your sounds into. For instance mine is:


mySound.setVolume(variable);

I’m at work right now and don’t have Flash here, but I’m pretty sure that’s how I did it. You could also do a search on ‘loading music’. I know I’ve seen this topic a lot.
Hope that helps!

Freddy I think he means volume overall in the whole movie

That’s true, he does say all sounds…I didn’t see that, and I’m not sure if there is. I think sounds in Flash are objects or events and independent from one another; I guess you could have a line of code for each sound thing like:


mySound.setVolume(variable);
musicLoop.setVolume(variable);
crash.setVolume(variable);
//etc..etc..

but that would be cheating!! :bad: