# Loading FLV with no sound

**URL:** https://forum.kirupa.com/t/loading-flv-with-no-sound/238510
**Category:** flash
**Created:** [September 12, 2007, 6:40am UTC](https://forum.kirupa.com/t/loading-flv-with-no-sound/238510 "2007-09-12T06:40:49Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![absolutejw](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@absolutejw](https://forum.kirupa.com/u/absolutejw)
#### Post date: [September 12, 2007, 6:40am UTC](https://forum.kirupa.com/t/loading-flv-with-no-sound/238510/1 "2007-09-12T06:40:49Z")

</div>

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,
