# Help with preloader

**URL:** <https://forum.kirupa.com/t/help-with-preloader/177861>\
**Category:** Uncategorized\
**Created:** [February 6, 2006, 12:26am UTC](https://forum.kirupa.com/t/help-with-preloader/177861 "2006-02-06T00:26:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thats\_all\_folks](https://avatars.discourse-cdn.com/v4/letter/t/e0b2c6/32.png) [@thats\_all\_folks](https://forum.kirupa.com/u/thats_all_folks)\
**Post date:** [February 6, 2006, 12:26am UTC](https://forum.kirupa.com/t/help-with-preloader/177861/1 "2006-02-06T00:26:51Z")

</div>

I was wondering if somone could help me with my preloader. I need after its loaded the movie and the bar is at 100% to have it scale backwards and fade away.

heres my code  
stop();  
myInterval = setInterval(preloader, 10);  
function preloader() {  
if (getBytesLoaded()\>=getBytesTotal()) {  
play();  
clearInterval(myInterval);  
}  
bar\_mc.\_xscale = (getBytesLoaded()/getBytesTotal())\*100;  
}

Cheers
