# Preloader problem

**URL:** <https://forum.kirupa.com/t/preloader-problem/10772>\
**Category:** Uncategorized\
**Created:** [January 7, 2003, 5:12am UTC](https://forum.kirupa.com/t/preloader-problem/10772 "2003-01-07T05:12:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tee28](https://avatars.discourse-cdn.com/v4/letter/t/7ea924/32.png) [@tee28](https://forum.kirupa.com/u/tee28)\
**Post date:** [January 7, 2003, 5:12am UTC](https://forum.kirupa.com/t/preloader-problem/10772/1 "2003-01-07T05:12:11Z")

</div>

hey,  
i am having a hard time getting my preloader to work. here is the syntax:  
loaded\_bytes=getBytesLoaded();  
total\_bytes=getBytesTotal();  
percent\_done= int((loaded\_bytes/total\_bytes)\*100);  
loaderBar.gotoAndPlay (percent\_done);  
ifFrameLoaded(“Scene 1”, 50) {  
gotoAndPlay(“Scene 1”, 1);  
}

now when i preview it and view the streaming it works, but when i post it online, i can’t see the bar or stats at all. can someone tell me what is going on?

thanks.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 7, 2003, 5:28am UTC](https://forum.kirupa.com/t/preloader-problem/10772/2 "2003-01-07T05:28:15Z")

</div>

ifFramesLoaded is like dead I think… Try something like this…

```auto
loaded_bytes=getBytesLoaded();
total_bytes=getBytesTotal();
percent_done= int((loaded_bytes/total_bytes)*100);
loaderBar.gotoAndPlay (percent_done);
if (loaded_bytes == total_bytes) {
_root.gotoAndPlay("Scene 1", 1);
}

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 7, 2003, 6:33pm UTC](https://forum.kirupa.com/t/preloader-problem/10772/3 "2003-01-07T18:33:27Z")

</div>

thanks lost in beta! i’ll try that out.
