# Problems making main movie preloader for dynamic multiple clips

**URL:** <https://forum.kirupa.com/t/problems-making-main-movie-preloader-for-dynamic-multiple-clips/215585>\
**Category:** flash\
**Created:** [February 8, 2007, 12:56pm UTC](https://forum.kirupa.com/t/problems-making-main-movie-preloader-for-dynamic-multiple-clips/215585 "2007-02-08T12:56:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pup\_100](https://avatars.discourse-cdn.com/v4/letter/p/da6949/32.png) [@Pup\_100](https://forum.kirupa.com/u/Pup_100)\
**Post date:** [February 8, 2007, 12:56pm UTC](https://forum.kirupa.com/t/problems-making-main-movie-preloader-for-dynamic-multiple-clips/215585/1 "2007-02-08T12:56:57Z")

</div>

Hi,  
I have the following code which is used to load 3 swfs into a movie clip on the main stage:

```auto
holdCard_array = [this.hold_mc.emp, this.hold_mc.nick, this.hold_mc.stren];
hold_array = ["cardtestempres.swf", "cardtestnick.swf", "cardteststrength.swf"];
l = 0;
while (l<=2) {
 var card = holdCard_array[l];
 card.loadMovie(hold_array[l]);
 l++;
}

```

No problem with that - what is bugging me is how to get a preloader to give me the load progress of all the clips coming into the main movie – so that when all three clips are loaded the loader will give 100%  
My best guest so far is to rather than use getBytesTotal() which will be hard with 3 individual movies, I will ascertain manually the total amount for all 3 swfs to be loaded & check against that with something like:

```auto
totalBytes=65000;
_root.hold_mc,onEnterframe=function(){
if(getBytesTotal()=> totalBytes){
goToAndStop(2);
}
} 

```
