# Importing external swfs

**URL:** https://forum.kirupa.com/t/importing-external-swfs/16395
**Category:** Uncategorized
**Created:** [March 24, 2003, 5:56pm UTC](https://forum.kirupa.com/t/importing-external-swfs/16395 "2003-03-24T17:56:33Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![jrhodes](https://avatars.discourse-cdn.com/v4/letter/j/53a042/32.png) [@jrhodes](https://forum.kirupa.com/u/jrhodes)
#### Post date: [March 24, 2003, 5:56pm UTC](https://forum.kirupa.com/t/importing-external-swfs/16395/1 "2003-03-24T17:56:33Z")

</div>

Hi,

I’ve incountered a problem that I need help figuring out…I’m using dynamic buttons to load external swfs into an area within an interface on level0.

There is an actionScript on a button that has been duplicated dynamically…  
The external swf is loaded into a host mc called “subpage\_mc”. The swf that should be loaded, is indicated within an array in the first frame of \_level0.

Here’s actionScript on button before dynamic duplication:  
\_level0.loadMovie(link,“subpage\_mc”);

The script works, but it replaces the interfacce completely on leve0. I want the new swf to load into level0 and for the interface to be visible at all times, not to be replaced. Does this issue have to do with instance stacking order? How should I make sure that this doesn’t happen? Please Help…

---

<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: [March 24, 2003, 6:35pm UTC](https://forum.kirupa.com/t/importing-external-swfs/16395/2 "2003-03-24T18:35:13Z")

</div>

Well level0 is the \_root, so I believe loading something on \_level0 replaces everything on the \_root.

I could be wrong.

Try changing it to level1.

---

<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: [March 24, 2003, 6:39pm UTC](https://forum.kirupa.com/t/importing-external-swfs/16395/3 "2003-03-24T18:39:51Z")

</div>

Most books that I have read suggest loading with the loadmovie command to take place on level 50.

That way you know for a fact taht you aren’t going to affect the root of your movie.

---

<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: [March 24, 2003, 7:12pm UTC](https://forum.kirupa.com/t/importing-external-swfs/16395/4 "2003-03-24T19:12:28Z")

</div>

Well, my host clip exists on level0…I’ve tried level1 and level50, but alas…it doesn’t pull up anything…I think Flash is looking for the host clip I’m targeting on those levels and it is on level0.  
The same problem occurs when I use \_root. Any other suggestions? I’ve thought about using attachMovieClip, but some of these files are too big  
its best to use the external swf to insure a sleeker and faster project.

---

<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: [March 24, 2003, 7:31pm UTC](https://forum.kirupa.com/t/importing-external-swfs/16395/5 "2003-03-24T19:31:57Z")

</div>

I figured it out…  
Thanks for your suggestions, they helped me realize I should place the host movie clip into an initial host clip that has a loadMovie action on the frame… This initial host clip loads up, on its own as the interface builds…I placed my “sub page” host clip within the initial host clip and targeted level1. Thanks again for your suggestions, they helped alot!

---

<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: [March 24, 2003, 7:33pm UTC](https://forum.kirupa.com/t/importing-external-swfs/16395/6 "2003-03-24T19:33:29Z")

</div>

Try this…

subpage\_mc.loadMovie(“file.swf”);

Or

this.subpage\_mc.loadMovie(“file.swf”);

Or

\_root.subpage\_mc.loadMovie(“file.swf”);

Or

\_parent.subpage\_mc.loadMovie(“file.swf”);

---

<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: [March 24, 2003, 7:34pm UTC](https://forum.kirupa.com/t/importing-external-swfs/16395/7 "2003-03-24T19:34:11Z")

</div>

Oh alright, glad to see you fixed it.
