# Halfway preloader

**URL:** <https://forum.kirupa.com/t/halfway-preloader/175298>\
**Category:** Uncategorized\
**Created:** [January 13, 2006, 7:21am UTC](https://forum.kirupa.com/t/halfway-preloader/175298 "2006-01-13T07:21:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rawnewdlz](https://avatars.discourse-cdn.com/v4/letter/r/e19adc/32.png) [@rawnewdlz](https://forum.kirupa.com/u/rawnewdlz)\
**Post date:** [January 13, 2006, 7:21am UTC](https://forum.kirupa.com/t/halfway-preloader/175298/1 "2006-01-13T07:21:18Z")

</div>

Hi,  
my preloader plays about halfway and then begins the movie even though the movie is still downloading. Would it have anything to do with the streaming audio or because the file is big? Any help will be appreciated.

onClipEvent (enterFrame) {  
bytes\_loaded = Math.round(\_root.getBytesLoaded()/1000);  
bytes\_total = Math.round(\_root.getBytesTotal()/1000);  
getPercent = bytes\_loaded/bytes\_total;  
this.loadBar.\_width = getPercent_100;  
this.loadKb = “Loading “+bytes\_loaded+” Kb of “+bytes\_total+” Kb”;  
this.loadText = Math.round(getPercent_1000);  
if (bytes\_loaded == bytes\_total) {  
\_root.play();  
}  
}
