# Stopping FLVplayer in AS3 when leaving page?

**URL:** <https://forum.kirupa.com/t/stopping-flvplayer-in-as3-when-leaving-page/331220>\
**Category:** flash\
**Created:** [June 16, 2013, 7:26am UTC](https://forum.kirupa.com/t/stopping-flvplayer-in-as3-when-leaving-page/331220 "2013-06-16T07:26:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vivsa](https://avatars.discourse-cdn.com/v4/letter/v/5daacb/32.png) [@vivsa](https://forum.kirupa.com/u/vivsa)\
**Post date:** [June 16, 2013, 7:26am UTC](https://forum.kirupa.com/t/stopping-flvplayer-in-as3-when-leaving-page/331220/1 "2013-06-16T07:26:00Z")

</div>

Right now what happens is that I have a play and stop button that work on the page, but if the person were to leave the video page without pressing stop first the video continues. I have managed to stop the sound by writing: SoundMixer.stopall()  
but if you go back to the video page, you will see the video continued playing just without sound.  
Also, since I have background music throughout my site, I need a different way to stop the music, without stopping all of it.  
Also, just writing Flvplayer.stop() doesn’ tdo anything…  
Can anyone help please?
