# \_level100 .swf needs to go to specific location?

**URL:** https://forum.kirupa.com/t/-level100-swf-needs-to-go-to-specific-location/268705
**Category:** flash
**Created:** [August 17, 2008, 5:37pm UTC](https://forum.kirupa.com/t/-level100-swf-needs-to-go-to-specific-location/268705 "2008-08-17T17:37:06Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jpearson311](https://avatars.discourse-cdn.com/v4/letter/j/977dab/32.png) [@jpearson311](https://forum.kirupa.com/u/jpearson311)
#### Post date: [August 17, 2008, 5:37pm UTC](https://forum.kirupa.com/t/-level100-swf-needs-to-go-to-specific-location/268705/1 "2008-08-17T17:37:06Z")

</div>

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):

```auto
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:

```auto

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
