# External swf loading

**URL:** <https://forum.kirupa.com/t/external-swf-loading/34077>\
**Category:** Uncategorized\
**Created:** [October 27, 2003, 10:12pm UTC](https://forum.kirupa.com/t/external-swf-loading/34077 "2003-10-27T22:12:12Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![gmh526](https://avatars.discourse-cdn.com/v4/letter/g/2acd7d/32.png) [@gmh526](https://forum.kirupa.com/u/gmh526)\
**Post date:** [October 27, 2003, 10:12pm UTC](https://forum.kirupa.com/t/external-swf-loading/34077/1 "2003-10-27T22:12:12Z")

</div>

it looks like yall have had a lot of questions concerning loading from external sources lately… well, ive got one more.

i need to load an external .swf intro a mc shell in another .swf. thats not a problem using  
\_root.contents.loadMovie(“content\_1.swf”);  
in which contents is an empty mc. however, this doesnt work when i put the contents mc inside another mc (its masked if that makes any difference).

does the \_root function not work if the code and mc are not directly on the stage?

any help is appreciated

cheers

---

<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:** [October 27, 2003, 10:20pm UTC](https://forum.kirupa.com/t/external-swf-loading/34077/2 "2003-10-27T22:20:09Z")

</div>

oh, and i tired using \_this instead of \_root. didnt work either:\*(

---

<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:** [October 27, 2003, 10:26pm UTC](https://forum.kirupa.com/t/external-swf-loading/34077/3 "2003-10-27T22:26:00Z")

</div>

when you put the contents mc into another mc, the command \_root.contents.loadMovie is no longer valid. Instead, you should be using something like \_root.newmovie.contents.loadMovie or something like it.

See the difference?

🙂

---

<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:** [October 28, 2003, 9:08pm UTC](https://forum.kirupa.com/t/external-swf-loading/34077/4 "2003-10-28T21:08:22Z")

</div>

where .newmovie is the mc that the contents mc is contained in?  
yeah, thanks, ill try that

---

<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:** [October 28, 2003, 9:43pm UTC](https://forum.kirupa.com/t/external-swf-loading/34077/5 "2003-10-28T21:43:57Z")

</div>

Yes, because if you place it in another movieclip, you first have to target that movieclip by using \_root.othermovie, and then the container movie inside that movie, so \_root.othermovie.container 🙂 Make sure that the movieclip in which container is in, othermovie, has an instance name, otherwise you can’t target it nor anything inside it.

---

<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:** [October 28, 2003, 11:02pm UTC](https://forum.kirupa.com/t/external-swf-loading/34077/6 "2003-10-28T23:02:05Z")

</div>

got it. thanks yall

---

<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:** [October 28, 2003, 11:24pm UTC](https://forum.kirupa.com/t/external-swf-loading/34077/7 "2003-10-28T23:24:33Z")

</div>

well, i go that all sorted out, but now a new issue arises.  
how would you, in actionsciprt, check the library for the .swf you are going to load before you attempt to load it?  
if that was incoherent, how do i stop it from reloading the swf each time the page is entered? if the swf has been loaded, i dont want it to reload and run through the preloader and transitions.
