# Preloaders with loadMovie()

**URL:** <https://forum.kirupa.com/t/preloaders-with-loadmovie/11892>\
**Category:** Uncategorized\
**Created:** [January 23, 2003, 6:22pm UTC](https://forum.kirupa.com/t/preloaders-with-loadmovie/11892 "2003-01-23T18:22:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pithcell](https://avatars.discourse-cdn.com/v4/letter/p/3d9bf3/32.png) [@pithcell](https://forum.kirupa.com/u/pithcell)\
**Post date:** [January 23, 2003, 6:22pm UTC](https://forum.kirupa.com/t/preloaders-with-loadmovie/11892/1 "2003-01-23T18:22:47Z")

</div>

good day,  
so heres the probs:  
i have a main movie with a container movie clip entitled CONTENTS.  
i am loading .swfs into this container (contents).  
i have the preloader for my main movie, but i need it for my other movies.  
the code for my main movie

bytes\_loaded = Math.round(\_root.getBytesLoaded());  
bytes\_total = Math.round(\_root.getBytesTotal());  
getPercent = bytes\_loaded/bytes\_total;  
\_root.loadBar.\_width = getPercent_100;  
\_root.loadText = Math.round(getPercent_100)+"%";  
if (bytes\_loaded == bytes\_total) {  
\_root.gotoAndStop(3);  
}

THANKS to you guys for this code!!!

then on my individual swfs i have

bytes\_loaded = Math.round(\_root.contents.getBytesLoaded());  
bytes\_total = Math.round(\_root.contents.getBytesTotal());  
getPercent = bytes\_loaded/bytes\_total;  
\_root.contents.loadBar2.\_width = getPercent_100;  
\_root.contents.loadText2 = Math.round(getPercent_100)+"%";  
if (bytes\_loaded == bytes\_total) {  
\_root.contents.gotoAndStop(3);  
}

just ADDED CONTENTS after the \_root to indicate to the program to check the bytes for the contents movie. Seemed logical to me HOWEVER, success is yet to be had

am i missing something that is keeping the preloaders from loading for the individual swfs??

cheers  
P  
PS i have a big thank you to Kirupa and all the moderators who have helped me out in the past and in the future on my new site…just wanna say YOU ROCK THE FREE WORLD

---

<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:** [January 23, 2003, 7:08pm UTC](https://forum.kirupa.com/t/preloaders-with-loadmovie/11892/2 "2003-01-23T19:08:09Z")

</div>

i have noticed quite a few people asking this type of ?..an update tute on top of the original preload tute would be fantastic…much love to any one who does  
P
