# Preloading issue

**URL:** <https://forum.kirupa.com/t/preloading-issue/99836>\
**Category:** Uncategorized\
**Created:** [January 22, 2004, 7:34pm UTC](https://forum.kirupa.com/t/preloading-issue/99836 "2004-01-22T19:34:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jacobaa](https://avatars.discourse-cdn.com/v4/letter/j/898d66/32.png) [@jacobaa](https://forum.kirupa.com/u/jacobaa)\
**Post date:** [January 22, 2004, 7:34pm UTC](https://forum.kirupa.com/t/preloading-issue/99836/1 "2004-01-22T19:34:40Z")

</div>

i would like to preload 1/4 of an swf and then start playing. This is my current code for the regular preloader.

totalBytes = this.getBytesTotal();  
loadedBytes = this.getBytesLoaded();  
remainingBytes = totalBytes - loadedBytes;  
percentDone = int((loadedBytes/totalBytes)\*100);  
bar.gotoAndStop(percentDone);

if (\_framesloaded == \_totalframes) {  
gotoAndPlay(3);  
}

I thought that if I could make the this.getBytesTotal() / 4; that it might work, but no deal…

I also tried taking out the current if statement and replacing it with this:

if( percentDone \>= 25){  
gotoAndPlay(3);  
}

but no luck with that either…

does anyone have any suggestions on how to preload a swf 25% before playing?
