Go to Frame in external SWF?

I want my main page to load an external SWF and go to a frame in that external SWF.

I am putting the following Actionscript 2.0 into the main page that the external SWF is loading into:

the we.come.swf is what I am loading.

on(release){
	loadMovie("swf/welcome.swf",this._parent.blank_mc);
	
}



I want to go to this frame in welcome.swf once it loads. I want it to play the animation.

this.gotoAndPlay(“web”)

Thanks for your help.

This should work:

var mcHolder:MovieClip = createEmptyMovieClip("mcHolder", getNextHighestDepth());
var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.addListener(this);
mcLoader.loadClip("external.swf", mcHolder);
function onLoadInit(mc:MovieClip) {
	mcHolder.gotoAndPlay(framenumber);
}

I can’t get it to work with a frame label (not sure why) so I just added the frame number instead. Make sure to change it to the frame number you need. :slight_smile:

Thank you! But where do I put the frame number in the Actionscript you posted?
:slight_smile:

Right where it says framenumber:

mcHolder.gotoAndPlay(framenumber);

would become

mcHolder.gotoAndPlay(‘5’);

Oh… thank you. :smiley: