# Problem preloading numerous swf's

**URL:** <https://forum.kirupa.com/t/problem-preloading-numerous-swfs/193348>\
**Category:** Uncategorized\
**Created:** [July 12, 2006, 7:42pm UTC](https://forum.kirupa.com/t/problem-preloading-numerous-swfs/193348 "2006-07-12T19:42:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bandsaw](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@bandsaw](https://forum.kirupa.com/u/bandsaw)\
**Post date:** [July 12, 2006, 7:42pm UTC](https://forum.kirupa.com/t/problem-preloading-numerous-swfs/193348/1 "2006-07-12T19:42:36Z")

</div>

This should be very easy for most of you

im trying to load one swf with its own preloader, wait till its loaded then load another.

i was going to load it like this, with nested if statments:

preloader\_mc.loadMovie(“img1.swf”,90);  
if(preloader\_mc.getBytesLoaded() == preloader\_mc.getBytesTotal()){  
preloader\_mc.loadMovie(“img2.swf”,90);  
}

but i cant seem to get it to work.

trace(preloader\_mc.getBytesLoaded()) returns 4  
trace(preloader\_mc.getBytesTotal()) returns 4

before it loads the first swf, so it fails right off the bat.  
can someone help me. im in kinda of a bind.
