# Opening external swfs into main movie

**URL:** <https://forum.kirupa.com/t/opening-external-swfs-into-main-movie/34816>\
**Category:** Uncategorized\
**Created:** [November 6, 2003, 6:22pm UTC](https://forum.kirupa.com/t/opening-external-swfs-into-main-movie/34816 "2003-11-06T18:22:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pixiesparkles13](https://avatars.discourse-cdn.com/v4/letter/p/8e8cbc/32.png) [@pixiesparkles13](https://forum.kirupa.com/u/pixiesparkles13)\
**Post date:** [November 6, 2003, 6:22pm UTC](https://forum.kirupa.com/t/opening-external-swfs-into-main-movie/34816/1 "2003-11-06T18:22:46Z")

</div>

Hi

I have done searches… and either I am just braindead today, or I am not finding the answer.

Anyway, I have a main.swf with a menu that is its own mc.  
(It needs to pop up when the menu button is clicked), from this menu I need external swfs to open  
inside my main.swf.  
I also want my external swfs to play in order.  
like mod\_1.swf plays and then opens mod\_2.swf ect.

(the menu is just for the user to jump around)

So I have started with this code…  
on the main timeline(Scene) I have a target code

\_root.createEmptyMovieClip(“container”,1);  
container.\_x = 0  
container.\_y = 0

then within my menu mc I have

m1\_btn.onpress = function() {  
loadMovie (“mod\_1.swf”, “container”);  
container.\_x = 400  
container.\_y = 300  
};

-and I do have a container mc in my library-

but, its not working… :-\

I would truely appreciate any advice.  
Thanks

---

<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:** [November 6, 2003, 6:34pm UTC](https://forum.kirupa.com/t/opening-external-swfs-into-main-movie/34816/2 "2003-11-06T18:34:31Z")

</div>

Are you sure you don’t have a movieclip with the depth 1 already ? Also, use container.loadMovie(“mod\_1.swf”), handier to use.

---

<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:** [November 6, 2003, 8:24pm UTC](https://forum.kirupa.com/t/opening-external-swfs-into-main-movie/34816/3 "2003-11-06T20:24:11Z")

</div>

depth 1? you mean the scene?

---

<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:** [November 7, 2003, 7:56pm UTC](https://forum.kirupa.com/t/opening-external-swfs-into-main-movie/34816/4 "2003-11-07T19:56:31Z")

</div>

No, I mean the depth of the movieclip you create, createEmptyMovieClip(instancename,depth). If two movieclips have the same depths, they won’t function properly.
