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?