You can use your movie clips' soundTransform
property to adjust volume of those sounds that are played within it. But, you cannot set a var and get all dependant SoundTransform
objects to adjust themselves, so write a setter property function.
private var vol:Number=1.0;
public function set volume(value:Number):void {
var st:SoundTransform=new SoundTransform(value);
vol=value;
for each (var mc:MovieClip in whateverArray) mc.soundTransform=st;
}
public function get volume():Number { return vol; }
whateverArray
is supposed to be the array that holds all the movie clip instances that are dependant on setting volume here.