# How to call from an external SWF the main SWF

**URL:** <https://forum.kirupa.com/t/how-to-call-from-an-external-swf-the-main-swf/12859>\
**Category:** Uncategorized\
**Created:** [February 5, 2003, 12:51pm UTC](https://forum.kirupa.com/t/how-to-call-from-an-external-swf-the-main-swf/12859 "2003-02-05T12:51:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pablogill](https://avatars.discourse-cdn.com/v4/letter/p/3ab097/32.png) [@pablogill](https://forum.kirupa.com/u/pablogill)\
**Post date:** [February 5, 2003, 12:51pm UTC](https://forum.kirupa.com/t/how-to-call-from-an-external-swf-the-main-swf/12859/1 "2003-02-05T12:51:16Z")

</div>

Please I need help.,

I load an external SWF movie in my main SWF ( I use tell a target with an empty movieclick) I need that when this external SWF ends go to a XXXXXX Frame but in the main SWF no in the same external SWF.

Thanks

Pablo Gill

---

<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:** [February 5, 2003, 1:59pm UTC](https://forum.kirupa.com/t/how-to-call-from-an-external-swf-the-main-swf/12859/2 "2003-02-05T13:59:30Z")

</div>

You have to call the main timeline to use the main movie when using target method for load movie.

just use

```auto

_root.yourmovie.gotoAndPlay(framenumber);

```

and put the instance name where i have yourmovie

---

<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:** [February 5, 2003, 2:04pm UTC](https://forum.kirupa.com/t/how-to-call-from-an-external-swf-the-main-swf/12859/3 "2003-02-05T14:04:13Z")

</div>

my bad , you dnt need the instance name

so its just

```auto

_root.gotoAndPlay(framenumber);

```

replace framenumber with the number you want to navigate to,

sorry about before, guess its getting late(-:

---

<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:** [February 5, 2003, 2:16pm UTC](https://forum.kirupa.com/t/how-to-call-from-an-external-swf-the-main-swf/12859/4 "2003-02-05T14:16:59Z")

</div>

the main movie always is on level 0, and is best to use gotoAndPlay on _frame labels_ instead of _frame numbers_ in the root of the main movie, so:

```auto
_level0.gotoAndPlay("frameLabel");

```

cheers :bounce:

---

<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:** [February 5, 2003, 2:23pm UTC](https://forum.kirupa.com/t/how-to-call-from-an-external-swf-the-main-swf/12859/5 "2003-02-05T14:23:30Z")

</div>

Thank for your help but the main SWF is in a \*.EXE

Do I have to use the same code?

Thanks

Pablo Gill

---

<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:** [February 5, 2003, 3:10pm UTC](https://forum.kirupa.com/t/how-to-call-from-an-external-swf-the-main-swf/12859/6 "2003-02-05T15:10:17Z")

</div>

.exe?

try, if that doesn´t work, nothing will :-\
