hi. i have this code that load on a keyframe
loadListener.onLoadProgress = function(target_mc:MovieClip, bytesLoaded:Number, bytesTotal:Number):Void {
info.text = Math.round((bytesLoaded/bytesTotal)*100)+"%";
};
loadListener.onLoadInit = function(target_mc:MovieClip):Void {
info.text = "";
};
var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.addListener(loadListener);
mcLoader.loadClip(swf_path, swf_loader3);
i want on every other keyframe to load this:
swf_loader.unloadMovie();
Because the swf_loader are mp3 player and if i change page wihout having press the stop button first the music is still playing.
I have try to just add swf_loader.unloadMovie(); on every other keyframe but it doesnt work. i guess i have to find out where this swf_loader exist/is included right? how i can do that?
in addition to the errors in you message, unloading that swf isn't likely to stop the sound being played in that swf.
what will probably work better for you is to
1. explicitly stop the sound stream in your loaded swf before navigating away from that frame or
2. use stopAllSounds() when navigating away from that frame.
North America
Europe, Middle East and Africa
Asia Pacific