# LoadMovie into target

**URL:** <https://forum.kirupa.com/t/loadmovie-into-target/27394>\
**Category:** flash\
**Created:** [August 1, 2003, 8:22pm UTC](https://forum.kirupa.com/t/loadmovie-into-target/27394 "2003-08-01T20:22:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jkielisz](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@jkielisz](https://forum.kirupa.com/u/jkielisz)\
**Post date:** [August 1, 2003, 8:22pm UTC](https://forum.kirupa.com/t/loadmovie-into-target/27394/1 "2003-08-01T20:22:36Z")

</div>

Hello everyone. I am having a problem using the Loadmovie command into a target. Basically, my site uses emptymovieclips to load the various elements of the site. For instance, for an emptymovieclip with instance name \<holder\>, I use the following code:  
OnClipEvent(load) {  
\_root.holder.LoadMovie(“bubbles.swf”);  
}  
This does not seem to work correctly. Bubbles.swf is an swf that displays bubbles that have been generated using the duplicatemovieclip command. However, when I try to load this movie, it only displays one bubble.  
I have also tried using the following command which DOES work:  
OnClipEvent(load) {  
LoadMovie(“bubbles.swf”,25);  
}  
Why isn’t the loadmovie into target command working? Thanks for all your 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 1, 2003, 8:30pm UTC](https://forum.kirupa.com/t/loadmovie-into-target/27394/2 "2003-08-01T20:30:58Z")

</div>

Check this:  
on your external movie ‘bubbles.swf’, you may have on your duplicateMovieClip() command a ‘\_root.’

\_root. means the main timeline, so ‘bubbles.swf’ is going to look in the main movie for the movieClip to duplicate - hence it won’t find it because it’s somewhere else. You’re loadMovie command is working fine the first way.

Go into ‘bubbles.swf’ and remove the word ‘\_root.’ on your commands - OR - target everything like:

```auto

duplicateMovieClip(_root.holder.bubble, "bubble"+i, i);
//guessing your movieClip is called bubble

```

Hope that helps!

---

<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 1, 2003, 11:38pm UTC](https://forum.kirupa.com/t/loadmovie-into-target/27394/3 "2003-08-01T23:38:35Z")

</div>

Awesome…worked perfectly. Thanks very much.

---

<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 1, 2003, 11:45pm UTC](https://forum.kirupa.com/t/loadmovie-into-target/27394/4 "2003-08-01T23:45:37Z")

</div>

NP 😛
