# Load external SWF in Main from external SWF

**URL:** <https://forum.kirupa.com/t/load-external-swf-in-main-from-external-swf/88768>\
**Category:** Uncategorized\
**Created:** [May 2, 2005, 3:23pm UTC](https://forum.kirupa.com/t/load-external-swf-in-main-from-external-swf/88768 "2005-05-02T15:23:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gotemgreat](https://avatars.discourse-cdn.com/v4/letter/g/b9e5f3/32.png) [@gotemgreat](https://forum.kirupa.com/u/gotemgreat)\
**Post date:** [May 2, 2005, 3:23pm UTC](https://forum.kirupa.com/t/load-external-swf-in-main-from-external-swf/88768/1 "2005-05-02T15:23:06Z")

</div>

Ok,

Here’s my problem…

Can someone explain to me how to load an external swf from an external Swf into the main, and what level it should go on? My example:

I have a main where MENU loads as an external SWF on the initial load… On MENU there is a button to load GALLERY back into the main… I want it to replace level 1. I have placed an empty container for the GALLERY with the instance name “mygallery” on my main. What is the code to put on the button… so far I have:

**on (release)**  
**{**  
**\_root.mygallery.loadMovie(“gallery.swf”, 3);**  
**}**

I am calling this to load on level 3… should I be doing that? Also, could someone please tell me what code I should have on my main for the container. I have:

**createEmptyMovieClip(“gallery\_holder”, 3);**

I hope I explained this well enough, I’m kinda new at this and trying to learn my best… THANKS!
