# LoadMovie + Failing Preload = Stress

**URL:** <https://forum.kirupa.com/t/loadmovie-failing-preload-stress/117541>\
**Category:** Uncategorized\
**Created:** [July 28, 2004, 7:30am UTC](https://forum.kirupa.com/t/loadmovie-failing-preload-stress/117541 "2004-07-28T07:30:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MFrederickson50](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@MFrederickson50](https://forum.kirupa.com/u/MFrederickson50)\
**Post date:** [July 28, 2004, 7:30am UTC](https://forum.kirupa.com/t/loadmovie-failing-preload-stress/117541/1 "2004-07-28T07:30:56Z")

</div>

So I have a movieclip called content on my main stage, and when a button is clicked I call \_root.content.loadMovie(“whatever.swf”) to load some content into it. Now, some of this content is big, so I wanted to have a preloader. I have a working preloader, so I just put it in the first scene of the swf that I’m loading. When I preview these content swf’s individually, the preloader works fine, but it doesn’t work at all when i load it with the actionscript call. Does anyone know why this happens, and more importantly how I can fix it? Thanks in advance.

-Mike

---

<div class="post-metadata">

**Author:** ![e\_s\_x\_s](https://avatars.discourse-cdn.com/v4/letter/e/f9ae1b/32.png) [@e\_s\_x\_s](https://forum.kirupa.com/u/e_s_x_s)\
**Post date:** [July 28, 2004, 7:47am UTC](https://forum.kirupa.com/t/loadmovie-failing-preload-stress/117541/2 "2004-07-28T07:47:59Z")

</div>

try to make the preloader from the main stage, not from the swf .

---

<div class="post-metadata">

**Author:** ![wizard](https://avatars.discourse-cdn.com/v4/letter/w/a87d85/32.png) [@wizard](https://forum.kirupa.com/u/wizard)\
**Post date:** [July 28, 2004, 7:48am UTC](https://forum.kirupa.com/t/loadmovie-failing-preload-stress/117541/3 "2004-07-28T07:48:13Z")

</div>

I don’t see any reason as to why it wouldn’t work, your script is correct and you say it works individually. Have you tried previewing it online in an HTML page?

---

<div class="post-metadata">

**Author:** ![MFrederickson50](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@MFrederickson50](https://forum.kirupa.com/u/MFrederickson50)\
**Post date:** [July 28, 2004, 4:26pm UTC](https://forum.kirupa.com/t/loadmovie-failing-preload-stress/117541/4 "2004-07-28T16:26:28Z")

</div>

How can I make the preloader from the mainstage work from on a loaded swf? (Also, I have tested the current setup online, and it doesn’t work there either.)

---

<div class="post-metadata">

**Author:** ![e\_s\_x\_s](https://avatars.discourse-cdn.com/v4/letter/e/f9ae1b/32.png) [@e\_s\_x\_s](https://forum.kirupa.com/u/e_s_x_s)\
**Post date:** [July 28, 2004, 4:36pm UTC](https://forum.kirupa.com/t/loadmovie-failing-preload-stress/117541/5 "2004-07-28T16:36:20Z")

</div>

just a simple example:

when you load your swf into the content MC, than use codes like :

\_root.content.getBytesLoaded();

and make your preloader.

PS. you can use MovieClipLoader ,if you use Flash MX 2004 Pro:)
