stop(); var sndTrack: soundTrack = new soundTrack(); var sndControl: SoundChannel; sndControl = sndTrack.play (0, 999); var volControl:SoundTransform = new SoundTransform(); volume1.addEventListener(MouseEvent.CLICK, sound1); volume2.addEventListener(MouseEvent.CLICK, sound2); volume3.addEventListener(MouseEvent.CLICK, sound3); volume4.addEventListener(MouseEvent.CLICK, sound4); function sound1 (event: MouseEvent):void { volControl.volume = 0; sndControl.soundTransform = volControl; } function sound2 (event: MouseEvent):void { volControl.volume = .2; sndControl.soundTransform = volControl; } function sound3 (event: MouseEvent):void { volControl.volume = .5; sndControl.soundTransform = volControl; } function sound4 (event: MouseEvent):void { volControl.volume = 1; sndControl.soundTransform = volControl; }