# loadMovie to be loaded in movie clip

**URL:** <https://forum.kirupa.com/t/loadmovie-to-be-loaded-in-movie-clip/28991>\
**Category:** flash\
**Created:** [August 20, 2003, 9:37pm UTC](https://forum.kirupa.com/t/loadmovie-to-be-loaded-in-movie-clip/28991 "2003-08-20T21:37:03Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![flash\_legend](https://avatars.discourse-cdn.com/v4/letter/f/2acd7d/32.png) [@flash\_legend](https://forum.kirupa.com/u/flash_legend)\
**Post date:** [August 20, 2003, 9:37pm UTC](https://forum.kirupa.com/t/loadmovie-to-be-loaded-in-movie-clip/28991/1 "2003-08-20T21:37:03Z")

</div>

good day members

i have a question

i want to loadmovie using targets

exactly i want as follow  
in the main scene i will drag a blank movie clip  
this movie clip will loadmovie a movie with defferent width and hight  
for examble  
the index movie 800_600  
the movie to be loaded is 500_300

is that possible  
if it is can you please add the code

thanks for 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:** [August 20, 2003, 9:46pm UTC](https://forum.kirupa.com/t/loadmovie-to-be-loaded-in-movie-clip/28991/2 "2003-08-20T21:46:56Z")

</div>

Create a empty movie clip and give it an intance name of “container\_mc” (no quotes). Now im assuming you want the external swf to be centered onstage. If so, place the container\_mc on center of stage. Now place this code on main timeline:[AS]container\_mc.loadMovie(“yourmovie.swf”);  
\_root.onEnterFrame = function() {  
if (container\_mc.\_width\>0) {  
delete this.onEnterFrame;  
container\_mc.\_x -= container\_mc.\_width/2;  
container\_mc.\_y -= container\_mc.\_height/2;  
}  
};[/AS]

---

<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:** [August 20, 2003, 9:54pm UTC](https://forum.kirupa.com/t/loadmovie-to-be-loaded-in-movie-clip/28991/3 "2003-08-20T21:54:05Z")

</div>

thanks claudio

but the problem is that i dont have FLASHMX  
i use flash 5  
so please if possible to give me the code in flash 5  
thanks 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:** [August 20, 2003, 9:58pm UTC](https://forum.kirupa.com/t/loadmovie-to-be-loaded-in-movie-clip/28991/4 "2003-08-20T21:58:26Z")

</div>

Ahh \*\*\*\*! I always forget about that. 😛  
You want the external swf to be centered?

---

<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:** [August 20, 2003, 10:01pm UTC](https://forum.kirupa.com/t/loadmovie-to-be-loaded-in-movie-clip/28991/5 "2003-08-20T22:01:47Z")

</div>

no not to be centered  
u know the movie clip i will drag it , i will drag it the place i want so it can be loaded the movie

i hope you understand me  
thank you

---

<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:** [August 20, 2003, 10:04pm UTC](https://forum.kirupa.com/t/loadmovie-to-be-loaded-in-movie-clip/28991/6 "2003-08-20T22:04:09Z")

</div>

Just use:[AS]container\_mc.loadMovie(“yourmovie.swf”);  
[/AS]Or[AS]loadMovie(“yourmovie.swf”,container\_mc);  
[/AS]

---

<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:** [August 20, 2003, 10:07pm UTC](https://forum.kirupa.com/t/loadmovie-to-be-loaded-in-movie-clip/28991/7 "2003-08-20T22:07:41Z")

</div>

ok now  
this code will be inside the movie clip  
and i will drag it in the stage

this is i hope the final question

---

<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:** [August 20, 2003, 10:08pm UTC](https://forum.kirupa.com/t/loadmovie-to-be-loaded-in-movie-clip/28991/8 "2003-08-20T22:08:44Z")

</div>

Nope, place it on 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:** [August 20, 2003, 10:13pm UTC](https://forum.kirupa.com/t/loadmovie-to-be-loaded-in-movie-clip/28991/9 "2003-08-20T22:13:47Z")

</div>

# ok now iam not sure how to explane to you now on the movie clip can i add this link

# onClipEVent(load){ loadMovie(“file.swf”,\_root.mc) }

is this code will 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:** [August 20, 2003, 10:15pm UTC](https://forum.kirupa.com/t/loadmovie-to-be-loaded-in-movie-clip/28991/10 "2003-08-20T22:15:48Z")

</div>

Yes i think it will 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:** [August 20, 2003, 10:17pm UTC](https://forum.kirupa.com/t/loadmovie-to-be-loaded-in-movie-clip/28991/11 "2003-08-20T22:17:39Z")

</div>

i am sorry for the lot of questions  
hope i am not getting you mad from that

thanks 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:** [August 20, 2003, 10:19pm UTC](https://forum.kirupa.com/t/loadmovie-to-be-loaded-in-movie-clip/28991/12 "2003-08-20T22:19:44Z")

</div>

me mad? not at all 😛  
welcome 😉
