# Aargh! loadMovie insanity!

**URL:** <https://forum.kirupa.com/t/aargh-loadmovie-insanity/35052>\
**Category:** Uncategorized\
**Created:** [November 9, 2003, 10:59pm UTC](https://forum.kirupa.com/t/aargh-loadmovie-insanity/35052 "2003-11-09T22:59:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bleutuna](https://avatars.discourse-cdn.com/v4/letter/b/eada6e/32.png) [@bleutuna](https://forum.kirupa.com/u/bleutuna)\
**Post date:** [November 9, 2003, 10:59pm UTC](https://forum.kirupa.com/t/aargh-loadmovie-insanity/35052/1 "2003-11-09T22:59:27Z")

</div>

How do you do **loadMovie** into an empty movie clip automatically, without a silly butto push or anything?

I’ve got a movie. I want to include another movie when the .swf file loads (so I can use a preloader on the movie that’s being loaded).

So, in my timeline, on a layer called **banner** , I have an empty movie clip I’ve made, with the following code:

```auto

onClipEvent(enterFrame) {
    loadMovie("topbar.swf", "_root.barHolder");
}

```

topbar.swf is the name of the movie that’s being called.

barHolder is the instance name for the movie clip I want it to load to.

So why isn’t this working?

---

<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:** [November 9, 2003, 11:05pm UTC](https://forum.kirupa.com/t/aargh-loadmovie-insanity/35052/2 "2003-11-09T23:05:54Z")

</div>

Try changing “topbar.swf” to an absolute URL, like “C:/Flash\Saved%20work\ opbar.swf”. That may not be the problem. One thing I do know is wrong is that it’s in an onClipEvent (enterFrame){  
loads the movie once each frame  
}

Change that to (load) and something should improve. Don’t know bout the URL, but that should work if they’re in the same folder.

---

<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:** [November 9, 2003, 11:28pm UTC](https://forum.kirupa.com/t/aargh-loadmovie-insanity/35052/3 "2003-11-09T23:28:20Z")

</div>

😑 Well, that WORKED, but it’s now taking control of the entire movie, and not placing it where the other movie clip was ☹

---

<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:** [November 10, 2003, 2:26am UTC](https://forum.kirupa.com/t/aargh-loadmovie-insanity/35052/4 "2003-11-10T02:26:48Z")

</div>

yeah, I found loading movie clips through another movie clip sucks \*\*\*. From personal expiernce it never showed up in the proper coordinates and It was very touchy. I would just load it straight onto your root movie. You dont need the onclip event all I would do is insert a keyframe when you want the movie to start loading. And have  
loadMovie(“topbar.swf”,1")  
or whichever level you want it to load on.
