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
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