# Loading external movies in mx

**URL:** <https://forum.kirupa.com/t/loading-external-movies-in-mx/13762>\
**Category:** Uncategorized\
**Created:** [February 17, 2003, 9:13pm UTC](https://forum.kirupa.com/t/loading-external-movies-in-mx/13762 "2003-02-17T21:13:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![somdow](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@somdow](https://forum.kirupa.com/u/somdow)\
**Post date:** [February 17, 2003, 9:13pm UTC](https://forum.kirupa.com/t/loading-external-movies-in-mx/13762/1 "2003-02-17T21:13:31Z")

</div>

ok my ? is this. i want to load an external swf movie into the main swf movie. now ive been using the loadmovie script and it works fine but the loaded movie comes up in the top left of my site so my ? is, how can i specify the location of where my loaded movie ends up

---

<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:** [February 17, 2003, 11:54pm UTC](https://forum.kirupa.com/t/loading-external-movies-in-mx/13762/2 "2003-02-17T23:54:37Z")

</div>

Depends where you load into, i tend to use an empty clip called “holder” (or whatever), and then change it’s \_x and \_y…if you load into a level, it will always be aligned top left at x=0/y=0

---

<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:** [February 18, 2003, 1:38am UTC](https://forum.kirupa.com/t/loading-external-movies-in-mx/13762/3 "2003-02-18T01:38:48Z")

</div>

sorry but a container??? i know i know but hey um, if you dont feel like explainning then is there a link where i could learn???either or 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:** [February 19, 2003, 4:15am UTC](https://forum.kirupa.com/t/loading-external-movies-in-mx/13762/4 "2003-02-19T04:15:20Z")

</div>

Create a container ‘change the name container in the code below’ and then tell it what level and where to put it when it loads.

----------------------- code:

this.createEmptyMovieClip(“yourContainer”,0);  
yourContainer.loadMovie(“name\_of\_file.swf”);  
this.onEnterFrame=function(){  
var l=yourContainer.getBytesLoaded();  
var t=yourContainer.getBytesTotal();  
if (l \> 0 && l \>=t){  
yourContainer.\_x=400;  
yourContainer.\_y=100;  
}  
}

------------------------ end code.

hope this helps.

:love:  
~ Seretha
