# How to make a flvplayback component stop when the scene is change?

**URL:** <https://forum.kirupa.com/t/how-to-make-a-flvplayback-component-stop-when-the-scene-is-change/328611>\
**Category:** flash\
**Created:** [May 30, 2012, 1:25am UTC](https://forum.kirupa.com/t/how-to-make-a-flvplayback-component-stop-when-the-scene-is-change/328611 "2012-05-30T01:25:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mariadelmar](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@mariadelmar](https://forum.kirupa.com/u/mariadelmar)\
**Post date:** [May 30, 2012, 1:25am UTC](https://forum.kirupa.com/t/how-to-make-a-flvplayback-component-stop-when-the-scene-is-change/328611/1 "2012-05-30T01:25:30Z")

</div>

I have a few videos in a flash multimedia, but when I change scene the videos keep on playing how can i stop them, this is the actionscript

stop();  
import flash.events.MouseEvent;

left.addEventListener(MouseEvent.CLICK,leftClick);

function leftClick(event:MouseEvent):void{  
gotoAndStop(“getlefttext”);  
}  
//…testimonios…\

six.addEventListener(MouseEvent.CLICK,vid6);  
seven.addEventListener(MouseEvent.CLICK,vid7);  
eight.addEventListener(MouseEvent.CLICK,vid8);  
nine.addEventListener(MouseEvent.CLICK,vid9);  
ten.addEventListener(MouseEvent.CLICK,vid10);

function vid6(event:MouseEvent): void{  
vidPlayer.source = ‘flvs/04.flv’  
}

function vid7(event:MouseEvent): void{  
vidPlayer.source = ‘flvs/05.flv’

}

function vid8(event:MouseEvent): void{  
vidPlayer.source = ‘flvs/10.flv’  
}

function vid9(event:MouseEvent): void{  
vidPlayer.source = ‘flvs/07.flv’  
}

function vid10(event:MouseEvent): void{  
vidPlayer.source = ‘flvs/09.flv’  
}

can you explain me how to make the videos stop, i am new in this… Thank You!!!
