I have an flv that is playing through a playback component with the instance name of “player”. The whole goal here is to have the audio muted when the file begins, and have an mc button (“noise”) allow the user to toggle the audio on and off. I’m not having any video controls on here, just the home-made audio toggle. Here is the code I have:
**player.volume = 0;
noise.onRelease = function(){
if (player.volume = 0){
player.volume =100;
noise.gotoAndPlay(“start”)
}
else {
player.volume = 0;
noise.gotoAndPlay(“hold”);
}
} **
I have tried switching the 0’s to 100’s and vise versus, I sometimes can get it to play but then not mute, or mute then not play. I have also tried switching the function to setVolume, with no results. I know I am close, disregard the gotoAndPlay’s, it just controlls an animation for the button. Any help would be appreciated, thanks.