# Controlong sound in loaded external FLV-s in embedded video

**URL:** https://forum.kirupa.com/t/controlong-sound-in-loaded-external-flv-s-in-embedded-video/320052
**Category:** flash
**Created:** [March 12, 2011, 6:36pm UTC](https://forum.kirupa.com/t/controlong-sound-in-loaded-external-flv-s-in-embedded-video/320052 "2011-03-12T18:36:28Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![sax586](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@sax586](https://forum.kirupa.com/u/sax586)
#### Post date: [March 12, 2011, 6:36pm UTC](https://forum.kirupa.com/t/controlong-sound-in-loaded-external-flv-s-in-embedded-video/320052/1 "2011-03-12T18:36:28Z")

</div>

:crying: In Flash MX 2004 Pro. I have embedded the video in which needs to load several external FLV files. These are the problem: In my main file I have a sound object (music) and then load the video when I reduce the volume of the music of the main file to 0 that the louder the sound from FLV videos. The problem is that when the music died down to 0 to mute the sound with FLV videos to 0.  
How to separate audio from FLV videos from sound of music and how to separately control the volume loaded FLV file?

This is the code that I use:

my\_nc = new NetConnection();  
my\_nc.connect(null);  
my\_ns = new NetStream(my\_nc);  
my\_video.attachVideo(my\_ns);  
my\_ns.play(“my\_movie.flv”);  
my\_ns.onStatus = function(info) {  
for (var i in info){  
trace(i+" = "+info\*);  
}  
if(info.code==“NetStream.Buffer.Empty” && waitingForEmpty==true){  
//display a play button because the video is done  
replay\_btn.\_visible=true;  
}  
if(info.code==“NetStream.Play.Stop”){  
waitingForEmpty=true;  
}  
};  
waitingForEmpty=false;  
replay\_btn.\_visible=false;  
replay\_btn.onPress=function(){  
replay\_btn.\_visible=false;  
waitingForEmpty=false;  
my\_ns.play(“my\_movie.flv”);  
}

thank in advance
