PDA

View Full Version : unloading external flv


neom314
01-20-2009, 01:02 AM
hi guys a question...
i have a swf, that call trough an action script an external swf containing a flv intro.
ive put a skip button (that works perfectly) but if i leave the intro running at the end the movie loop, instead i need that when this xternal swf as reach the end automatically unload and move to frame 3 of my main timeline (the main swf)..i have this code in the main swf :

//**** Carregador dos SWFs
carregadorMCL = new MovieClipLoader();



carregadorMCL.onLoadStart = function() {
};
carregadorMCL.onLoadProgress = function(target:MovieClip, bytesLoaded:Number, bytesTotal:Number) {
};
carregadorMCL.onLoadComplete = function(target_mc:MovieClip) {
};




carregadorMCL.loadClip("intro.swf",boxIntro_mc);





// Esse código é referente ao botão skip

function SkipIntro(){

This.gotoAndStop(3);

}



bt_mc.onRelease = function(){
unloadMovie(boxIntro_mc);
_level0.SkipIntro();
}


in this case what code i most put in the external swf? or i can simply add another code at the end of this in the main timeline?
i use actionscript 3.0
thanks

atomic
01-20-2009, 02:16 AM
Is the .flv embedded in the timeline of that external .swf? Or are you using a component player, or netStream?

neom314
01-20-2009, 07:55 AM
its embed..

atomic
01-20-2009, 02:31 PM
Add the following on your main timeline after your skipIntro button...


this.onEnterFrame = function(){
if(boxIntro_mc._currentframe >= boxIntro_mc.totalframes){
this.gotoAndStop(3);
delete this.onEnterFrame;
}
};