_level100 .swf needs to go to specific location?

Hi all. I have one primary swf and one secondary swf. The secondary swf has multiple labels and is loaded into _level100 when you click on a button in the primary swf, which is at _level0.

My question is, if I need the secondary swf to go to a certain frame label when it’s being called to load by the button at _level0, how do I do this?

Right now, I’m trying (code in primary swf at _level0):

this.primary_mc.myBtn_btn.onRelease = function():Void{
_level100.whichShow = "s2";
loadMovie("secondary.swf", 100);
};

Now, in the “primary.swf” that I’m loading into _level100, on the first keyframe, I have a variable called whichShow declared as so:


var whichShow:String = "";
this.gotoAndStop(whichShow);

I can’t seem to get it to work. It always goes to the first frame label no matter what. Any help would be appreciated. Thanks so much.

JPearson311