# Loadmovie won't load movie with preloader

**URL:** <https://forum.kirupa.com/t/loadmovie-wont-load-movie-with-preloader/7091>\
**Category:** flash\
**Created:** [October 23, 2002, 5:15pm UTC](https://forum.kirupa.com/t/loadmovie-wont-load-movie-with-preloader/7091 "2002-10-23T17:15:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pjc4real](https://avatars.discourse-cdn.com/v4/letter/p/58f4c7/32.png) [@Pjc4real](https://forum.kirupa.com/u/Pjc4real)\
**Post date:** [October 23, 2002, 5:15pm UTC](https://forum.kirupa.com/t/loadmovie-wont-load-movie-with-preloader/7091/1 "2002-10-23T17:15:04Z")

</div>

My flash site is created similar to that of the one in Kirupa’s full flash site tut. When I click the home button, the

\_root.contents.loadMovie(“welcome.swf”);

action loads in the welcome section (to a blank movieclip). However, “welcome.swf” consists of two scenes - the contents, and a preloader. It was working fine BEFORE I added the preloader scene. Now, all I get is a quick glimpse of my preloader animation (for “welcome.swf”), then my intial movie (navbar) starts over agin. What is wrong witht the code?

CODE USED FOR PRELOADER SCENE (IN “WELCOME.SWF”):

1ST FRAME:

total = \_root.getBytesTotal();  
loaded = \_root.getBytesLoaded();  
if (loaded\>=total) {  
\_root.gotoAndPlay(32)  
}

LAST FRAME:

gotoAndPlay(1);

---

<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:** [October 23, 2002, 9:29pm UTC](https://forum.kirupa.com/t/loadmovie-wont-load-movie-with-preloader/7091/2 "2002-10-23T21:29:04Z")

</div>

WHICH VERSION OF FLASH???

And it’s normal, when you load a movie in a clip, the \_root is no longer the \_root…

pom :hat:

---

<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:** [October 24, 2002, 12:44am UTC](https://forum.kirupa.com/t/loadmovie-wont-load-movie-with-preloader/7091/3 "2002-10-24T00:44:23Z")

</div>

MX… What were u saying about \_root??? :-\
