# FVplayer component sound problem - Please help

**URL:** https://forum.kirupa.com/t/fvplayer-component-sound-problem-please-help/232373
**Category:** flash
**Created:** [July 13, 2007, 5:53am UTC](https://forum.kirupa.com/t/fvplayer-component-sound-problem-please-help/232373 "2007-07-13T05:53:17Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![neatocoder](https://avatars.discourse-cdn.com/v4/letter/n/f08c70/32.png) [@neatocoder](https://forum.kirupa.com/u/neatocoder)
#### Post date: [July 13, 2007, 5:53am UTC](https://forum.kirupa.com/t/fvplayer-component-sound-problem-please-help/232373/1 "2007-07-13T05:53:17Z")

</div>

Hi,

I was trying to load two flv files into the same FLVPlayback component and using two buttons switch from one video to another. I was using the activeVideoPlayerIndex and visibleVideoPlayerIndex. I am successful in doing that but once I switch from one video to another the sound from the video stops. The buttons mutebutton and volumebar retain their status.

The code I am using -

function runVideo1(event:MouseEvent) {  
event.target.visible=false;  
Video1\_mc.visible=true;  
Video\_flvplayer.pause();  
Video\_flvplayer.activeVideoPlayerIndex =0;  
Video\_flvplayer.visibleVideoPlayerIndex =0;  
Video\_flvplayer.play();  
Video\_flvplayer.volume=1;  
}  
function runVideo2(event:MouseEvent) {  
event.target.visible=false;  
Video2\_mc.visible=true;  
Video\_flvplayer.pause();  
Video\_flvplayer.activeVideoPlayerIndex =1;  
Video\_flvplayer.visibleVideoPlayerIndex =1;  
Video\_flvplayer.play();  
Video\_flvplayer.volume=1;  
}  
Video1\_mc.addEventListener(MouseEvent.CLICK, runVideo2);  
Video2\_mc.addEventListener(MouseEvent.CLICK, runVideo1);  
Video\_flvplayer.load(this.VideoURL1);  
Video\_flvplayer.load(this.VideoURL2);  
Video\_flvplayer.activeVideoPlayerIndex =1;  
Video\_flvplayer.visibleVideoPlayerIndex =1;  
Video\_flvplayer.play();

Please Help.
