# Looping Flash Movie

**URL:** <https://forum.kirupa.com/t/looping-flash-movie/318612>\
**Category:** flash\
**Created:** [January 25, 2011, 8:54am UTC](https://forum.kirupa.com/t/looping-flash-movie/318612 "2011-01-25T08:54:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![inky](https://avatars.discourse-cdn.com/v4/letter/i/d78d45/32.png) [@inky](https://forum.kirupa.com/u/inky)\
**Post date:** [January 25, 2011, 8:54am UTC](https://forum.kirupa.com/t/looping-flash-movie/318612/1 "2011-01-25T08:54:37Z")

</div>

Hi,

I have a project in Flash AS 3 with several scenes. Each scene contains a flash movie. I want to loop the movies and used this code:

import fl.video.\*;

function onFLVComplete(event:VideoEvent):void {  
event.target.play();  
}

myPlayback.addEventListener(VideoEvent.COMPLETE, onFLVComplete);

The loop is working. The problem is that if I go to another scene the sounds from all movies play at the same time. I’ve already added the script SoundMixer.stopAll(); to stop the other movies from playing when I enter a new scene, so it was not a problem until I added the loop script.  
How do I fix this?
