# Loading external swf into main from another external swf

**URL:** <https://forum.kirupa.com/t/loading-external-swf-into-main-from-another-external-swf/24800>\
**Category:** Uncategorized\
**Created:** [July 4, 2003, 10:56pm UTC](https://forum.kirupa.com/t/loading-external-swf-into-main-from-another-external-swf/24800 "2003-07-04T22:56:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![filmshootz](https://avatars.discourse-cdn.com/v4/letter/f/ce73a5/32.png) [@filmshootz](https://forum.kirupa.com/u/filmshootz)\
**Post date:** [July 4, 2003, 10:56pm UTC](https://forum.kirupa.com/t/loading-external-swf-into-main-from-another-external-swf/24800/1 "2003-07-04T22:56:46Z")

</div>

I am trying to load external two.swf into the main.swf FROM external one.swf. If this makes any sense, can someone please explain to me how I can do this? 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:** [July 4, 2003, 11:03pm UTC](https://forum.kirupa.com/t/loading-external-swf-into-main-from-another-external-swf/24800/2 "2003-07-04T23:03:39Z")

</div>

in a button in externalone.swf, put an action like:  
[AS]  
on(press){  
\_root.container.loadMovie(“externaltwo.swf”);  
}  
[/AS]  
When you use \_root.command, it’s going to go to the main movie’s timeline (main.swf), automatically unload what is in the movieClip ‘container’ and load in the new one. That should work.

---

<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:** [July 4, 2003, 11:31pm UTC](https://forum.kirupa.com/t/loading-external-swf-into-main-from-another-external-swf/24800/3 "2003-07-04T23:31:25Z")

</div>

how can I make it go to the timeline of a mc rather than the main timeline?

---

<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:** [July 5, 2003, 12:19am UTC](https://forum.kirupa.com/t/loading-external-swf-into-main-from-another-external-swf/24800/4 "2003-07-05T00:19:45Z")

</div>

on(press){  
\_root.mcname.loadMovie(“externalmovie.swf”);  
}

should work you just got to target it into the movieclip you want it to load into
