Mute Unmute Audio file on frame
Ive inserted an audio file into my frame:
var soundReq:URLRequest = new URLRequest("Sound_1.mp3");
var sound:Sound = new Sound();
//end of sound section
I would like to know how would i mute and unmute this ....?
Im new to all this so please take it easy, any much would be much appreciated.
Your close, you just need to add a sound channel:
var channel1:SoundChannel = new SoundChannel();
var volumeAdjust:SoundTransform = new SoundTransform();
volumeAdjust.volume = .5;
channel1 = sound.play();
channel1.soundTransform = volumeAdjust;
Click Here to Expand Forum to Full Width