I am trying to load videoclips (or images) into the background layer, based on the frame number, using the Actionscript 2 below, on Macromedia Flash 8 pro.
There are two layers; background and text layer. The script loads clips alright but it puts them in front of the text layer. The script is placed on frame 1 of background layer:-
What am I doing wrong here, please?
I am a newbie and got the script from some forums. I'd appreciate any help.. Thanks!
mclListener.onLoadInit = function(target_mc:MovieClip) {};
this.createEmptyMovieClip("image_mc",1);
var mclListener:Object = new Object();
mclListener.onLoadInit = function(target_mc:MovieClip) {};
var image_mcl:MovieClipLoader = new MovieClipLoader();
image_mcl.addListener(mclListener);
// the first clip on frame 1
image_mcl.loadClip("movie1.swf", image_mc);
onEnterFrame = function () {
if (this._currentframe == 100) {
image_mcl.loadClip("movie2.swf", image_mc);
}
if (this._currentframe == 200) {
image_mcl.loadClip("movie3.swf", image_mc);
}
};