all groups > flash actionscript > october 2005 >
You're in the

flash actionscript

group:

Sound Actionscript


Sound Actionscript OniLink
10/18/2005 11:43:20 PM
flash actionscript:
I'm stuck,

Is it possible to control the volume of indivicual sounds, as well as having a master volume? If so, how would I go about doing it.

Please help,
Re: Sound Actionscript Equan
10/19/2005 12:00:00 AM
Re: Sound Actionscript kglad
10/19/2005 1:01:22 AM
you can control individual sounds by using the sound class. having a master
control would involve looping through all your sounds:

MasterF=function(vol){
for (var obj in _root) {
if (typeof (_root[obj] == "object")) {
_root[obj].setVolume(vol);
_root[obj].start();
}
}
}
Re: Sound Actionscript OniLink
10/19/2005 5:54:06 AM
Thanks kglad, you always deliver.

AddThis Social Bookmark Button