# How can I "test" a preloader?

**URL:** <https://forum.kirupa.com/t/how-can-i-test-a-preloader/122017>\
**Category:** Uncategorized\
**Created:** [September 9, 2004, 3:51pm UTC](https://forum.kirupa.com/t/how-can-i-test-a-preloader/122017 "2004-09-09T15:51:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Azazel](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@Azazel](https://forum.kirupa.com/u/Azazel)\
**Post date:** [September 9, 2004, 3:51pm UTC](https://forum.kirupa.com/t/how-can-i-test-a-preloader/122017/1 "2004-09-09T15:51:49Z")

</div>

OK, i’ve been wondering this for quite some time now… how can i test a preloader… if i have an animated preloader, and want to make shure that everything works? It’s such a small swf that i can’t see if the preloader is doing waht it’s supposed to!

:ear:

this is the AS i’m using

load\_mc.onEnterFrame = function(){  
var getPercent = \_root.getBytesLoaded() / \_root.getBytesTotal();  
var goFrame = Math.round(getPercent \* 50);  
this.gotoAndStop(goFrame);  
if (goFrame == 50) { // preloading finished  
\_root.nextFrame();  
}  
}
