Sound on / off on videostream AS3

Hi,

I tried building a sound on off button on a NetStream video.
im able to switch the volume off but not back on again.

I’m not very good at coding and im sure im overlooking something really simple but i havent been able to figure out why the sound wont switch back on.

Maybe someone can show me where i went wrong with my code.

Thx in advance!

sound_btn.addEventListener(MouseEvent.CLICK, startStopSounds);

function startStopSounds(event:MouseEvent):void
{    
    if (ns.soundTransform.volume == 1)
        {ns.soundTransform = new SoundTransform(0);
    ns.soundTransform.volume = 0;
        trace("soundmutes");
}
    else if (ns.soundTransform.volume == 0)
{    ns.soundTransform.volume = 1;
        trace("soundplays");
}

}