Okay I have a main movie that I has 2 external swf’s loaded into it.
Once those play I want them to sit for a few seconds (maybe about 3)
and then I want to unload them and load a new swf. I can’t just load into the same empty movie clip, because for 1, there is one swf replacing two and for 2, the position will be different.
Here is what I have so far:
<hr>
this.createEmptyMovieClip(“clip1”, 1);
this.createEmptyMovieClip(“clip2”, 2);
clip1.loadMovie(“welcometo.swf”);
clip1._x = 350 ;
clip1._y = 300 ;
clip2.onEnterFrame = function() {
if (clip1._currentframe == clip1._totalframes) {
// stop first animation
clip1.stop();
// load second animation
this.loadMovie("hospitality.swf");
clip2._x = 450 ;
clip2._y = 425 ;
}
};
<hr>
now, I tried adding:
this.clip1.unloadMovie(“welcometo.swf”);
this.clip2.unloadMovie(hospitality.swf");
this.createEmptyMovieClip(“clip3”, 1);
clip3.loadMovie(“hosted.swf”);
clip3._x = 400 ;
clip3._y = 350 ;
But all that did was cause the swf loaded into clip1 not to play.
Maybe I should add the code a few frames down and use an onClipEvent (enterFrame) command or something?
Not sure…