# loadMovie replacing?

**URL:** <https://forum.kirupa.com/t/loadmovie-replacing/62814>\
**Category:** flash\
**Created:** [August 31, 2004, 3:34pm UTC](https://forum.kirupa.com/t/loadmovie-replacing/62814 "2004-08-31T15:34:50Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![soulscope](https://avatars.discourse-cdn.com/v4/letter/s/74df32/32.png) [@soulscope](https://forum.kirupa.com/u/soulscope)\
**Post date:** [August 31, 2004, 3:34pm UTC](https://forum.kirupa.com/t/loadmovie-replacing/62814/1 "2004-08-31T15:34:50Z")

</div>

Hi there

Just a couple of simple questions:

does the loadMovie command also replace the existing swf in the target movieclip, or is this just the case with loadMovieNum?

for loadMovieNum, it says in the reference that I have to specify a level. now, what’s a level?

(flash beginner:-)

thanks in advance, best regards | dave

---

<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 31, 2004, 3:41pm UTC](https://forum.kirupa.com/t/loadmovie-replacing/62814/2 "2004-08-31T15:41:50Z")

</div>

Welcome to a great Flash forum, soulscope. You are in the right place there are a lot of great knowledgeable people here…anyway see if this tutorial helps you understand:

[http://www.kirupa.com/developer/mx/loading.htm](http://www.kirupa.com/developer/mx/loading.htm)

---

<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 31, 2004, 4:00pm UTC](https://forum.kirupa.com/t/loadmovie-replacing/62814/3 "2004-08-31T16:00:55Z")

</div>

You are correct about loadMovie. Everytime you load something into a target it replaces whatever was there.

You can consider levels to be like a stack of items. The \_root is the main timeline of a file. It is also considered to be level 0. Anything loaded into level 0 will replace what you’ve got on the \_root level, so I would recommend not doing that. When you load into a level higher than 0 you are stacking items. Kind of like layering.

There are limitations to levels. You can read more about it here:

[flash limits](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=16877&highlight=flash+limits)

:hr:

---

<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 31, 2004, 4:22pm UTC](https://forum.kirupa.com/t/loadmovie-replacing/62814/4 "2004-08-31T16:22:59Z")

</div>

wow… this really is a great forum! many thanks for 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:** [September 1, 2004, 11:17pm UTC](https://forum.kirupa.com/t/loadmovie-replacing/62814/5 "2004-09-01T23:17:04Z")

</div>

another question while Im at it: (I dont find this in the book I have)

can I use loadMovie only when a button is pressed or also when a certain frame is reached?

(when the page is loaded there is the first external movie in the frame, and then you can replace it by pressing the buttons)

---

<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:** [September 1, 2004, 11:31pm UTC](https://forum.kirupa.com/t/loadmovie-replacing/62814/6 "2004-09-01T23:31:23Z")

</div>

You can use loadMovie whenever you want - with any sort of trigger - onEnterFrame, onClipEvent(load), on(release), at the end of a tween, etc. Flash is pretty versatile.

:hr:

---

<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:** [September 1, 2004, 11:35pm UTC](https://forum.kirupa.com/t/loadmovie-replacing/62814/7 "2004-09-01T23:35:49Z")

</div>

:} 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:** [September 1, 2004, 11:56pm UTC](https://forum.kirupa.com/t/loadmovie-replacing/62814/8 "2004-09-01T23:56:21Z")

</div>

Your welcome 😃

---

<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:** [September 2, 2004, 1:52am UTC](https://forum.kirupa.com/t/loadmovie-replacing/62814/9 "2004-09-02T01:52:35Z")

</div>

okay and the last dumb question from me: :h:

I have a preloader in scene 2 of my flash movie, but it seems that the movie is preloading bevor its displayed. while its loading the screen is white… it is not a browser setting though… Im confused (even more than usualy…)

does anyone know this problem?

---

<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:** [September 2, 2004, 5:11am UTC](https://forum.kirupa.com/t/loadmovie-replacing/62814/10 "2004-09-02T05:11:09Z")

</div>

ugh scenes. 😜 best not to use them. better to use external swfs or movie clips. if you are already in too deep . . . hmmm . . . don’t know what to tell you. Flash loads everything as soon as you launch it so that’s probably why the preloader isn’t happenning. Better to have preloaders on external swfs then when you call them in with loadMovie the preloader will show first.

Hope you find the answer!

:hr:

p.s. there are no dumb questions - it’s all learning 🙂

---

<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:** [September 2, 2004, 7:14am UTC](https://forum.kirupa.com/t/loadmovie-replacing/62814/11 "2004-09-02T07:14:25Z")

</div>

> [@soulscope](#):
>
> …I have a preloader in scene 2 of my flash movie, but it seems that the movie is preloading bevor its displayed…

What’s in scene 1??

scotty(-:

---

<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:** [September 2, 2004, 6:10pm UTC](https://forum.kirupa.com/t/loadmovie-replacing/62814/12 "2004-09-02T18:10:15Z")

</div>

in scene 1 you can choose the language. then it goes to the preloader in scene 2. I already was in too deep, but I found the answer:

I was loading the swf directly into an iframe. now that the movie is in a seperate html document wich is the source of the iframe, the preloader is working…

thanks for your answers everyone! you helped me a lot!!
