Can anyone help with this piece of scripting?
At the end of an animated sequence of my 1st movie I would like to load in a 2nd external .swf file that replaces the 1st movie completely and at the same time jumps to a pre-defined frame of the new 2nd movie. Hope that makes sense..
I have found this related script that was suggested to another forum member (thanks to Benjer)
This goes into a blank movie clip onstage:
onClipEvent(load){
loadMovieNum("second_movie.swf",4);
targetFrame=94;
}
onClipEvent(enterFrame){
trace(_level4.getBytesLoaded());
if(_level4.getBytesLoaded()==_level4.getBytesTotal() && _level4.getBytesLoaded()>4){
_level4.gotoAndPlay(targetFrame);
}
}
I can't get this to work where it replaces the first movie completely and jumps to the required frame. Can anyone give me an idea of what I should do? I tried changing the levels to 0 but this doesn't seem to work - it just plays the imported movie from the beginning each time.
Thanks for any help.
At the end of an animated sequence of my 1st movie I would like to load in a 2nd external .swf file that replaces the 1st movie completely and at the same time jumps to a pre-defined frame of the new 2nd movie. Hope that makes sense..
I have found this related script that was suggested to another forum member (thanks to Benjer)
This goes into a blank movie clip onstage:
onClipEvent(load){
loadMovieNum("second_movie.swf",4);
targetFrame=94;
}
onClipEvent(enterFrame){
trace(_level4.getBytesLoaded());
if(_level4.getBytesLoaded()==_level4.getBytesTotal() && _level4.getBytesLoaded()>4){
_level4.gotoAndPlay(targetFrame);
}
}
I can't get this to work where it replaces the first movie completely and jumps to the required frame. Can anyone give me an idea of what I should do? I tried changing the levels to 0 but this doesn't seem to work - it just plays the imported movie from the beginning each time.
Thanks for any help.