
Originally Posted by
Vudrok
I wish that could be that easy, the swf file is being imported using the addChild method to a loader, and then removeChild(loader); that's how im removing it and i can't just say loader.stop(); i might have to do something like this but i tried and it doesn't work.
loader.loaderContentInfo.addEventListener(Event.CO MPLETE, onComplete);
function onComplete(event.Event):void {
event.target.content.myFlvplayer.stop();
}
but that would just stop it when it finish loading, i think i need to embed a button in that swf file that controls the flvplayer and then linkage for actionscript and try to add it an event listner, the think is that it only works adding it through the loader once it's been just loaded, I think im not good explaining my self, i'll upload an example later, thanks.
Code:
function onComplete(event.Event):void {
var swf:MovieClip=loader.content as MovieClip;
swf.myFlvplayer.stop();
}
Bookmarks