# Goto frame from outside swf file

**URL:** <https://forum.kirupa.com/t/goto-frame-from-outside-swf-file/20982>\
**Category:** flash\
**Created:** [May 15, 2003, 1:34pm UTC](https://forum.kirupa.com/t/goto-frame-from-outside-swf-file/20982 "2003-05-15T13:34:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rowdy](https://avatars.discourse-cdn.com/v4/letter/r/a698b9/32.png) [@rowdy](https://forum.kirupa.com/u/rowdy)\
**Post date:** [May 15, 2003, 1:34pm UTC](https://forum.kirupa.com/t/goto-frame-from-outside-swf-file/20982/1 "2003-05-15T13:34:21Z")

</div>

Is it possible to goto a frame in a swf file from a external html link?

I have set up a website with a flash navigation in a top frame (top.htm) and a html page in the lower main frame.

I hope its possible or i am stuffed!

Please help (code would be great!)

Actionscript MX

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 16, 2003, 11:09am UTC](https://forum.kirupa.com/t/goto-frame-from-outside-swf-file/20982/2 "2003-05-16T11:09:41Z")

</div>

It is possible but gets a little complicated. You need to pass a parameter into the flash movie for the part you want to go to. This is done in the html page that calls the flash movie

PARAM NAME=movie VALUE="/home/myFlash.swf?loadpage=anyone"

loadpage is the name of the variable that you want to pass in and anyone is its value. You also need to include it in the embed tag eg

EMBED src="/home/myFlash.swf?loadpage=anyone" etc

Then in your flash movie on the first frame you can add

```auto

if (loadpage=="anyone"){
gotoAndplay("anyone")
}

```

To change what page you want to go to the call in to the swf needs to pass a different variable. Hopefully you can do this by changing the varibale dynamically in the html page as it is served. Otherwise youll need to call different html pages with different values ifor loadpage in.
