HI,
I am streaming an flv through the following code:
//load/play flv
var connection_nc:NetConnection = new NetConnection();
connection_nc.connect(null);
var stream_ns:NetStream = new NetStream(connection_nc);
vidTV.attachVideo(stream_ns);
stream_ns.play(“video.flv”);
//
the flv starts playing with sound when it loads…how could I load it without sound and then have a mute/sound on button to turn on and off the sound?
I’ve tried making a movieclip, a button and added some more actionscript and doesn’t work:
//sound object movieclip actionscript
this.createEmptyMovieClip(“vSound”,this.getNextHighestDepth());
this.vSound.attachAudio(ns);
var so:Sound = new Sound(vSound);
so.setVolume(30);
// button actionscript
butMute.onRelease=function()
{
if(so.getVolume()==0){
so.setVolume(90);
}else{
so.setVolume(0);
}
}
Thank you for the help
charles,