# Preloader not preloading enough

**URL:** <https://forum.kirupa.com/t/preloader-not-preloading-enough/17753>\
**Category:** Uncategorized\
**Created:** [April 8, 2003, 10:27pm UTC](https://forum.kirupa.com/t/preloader-not-preloading-enough/17753 "2003-04-08T22:27:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![zephn](https://avatars.discourse-cdn.com/v4/letter/z/5f8ce5/32.png) [@zephn](https://forum.kirupa.com/u/zephn)\
**Post date:** [April 8, 2003, 10:27pm UTC](https://forum.kirupa.com/t/preloader-not-preloading-enough/17753/1 "2003-04-08T22:27:39Z")

</div>

my preloader doesn’t seem to preload the whole 3 scene movie I ahve made. if you go to [http://www.ThisisLondonClub.com/forAltaf](http://www.ThisisLondonClub.com/forAltaf)  
you will see the e card I have made. If it plays choppy or the song ends before you get to the form I have made you’ll see my problem.  
On my computer the song ends well after the e card has finished animating. Here is the code I have along with some basic notes I have taken to help me decipher it.  
If anyone can help me solve whyit’s not working please let me know.

onClipEvent (enterFrame) {  
if (\_parent.doneLoading == 0) {  
total = \_parent.\_parent.getBytesTotal();  
//isLoaded = the number of bytes loaded  
isloaded = \_parent.\_parent.getBytesLoaded();  
// p is equal to 100 x (the number of bytes loaded divided by the total amount of bytes)  
p = 100\*(isLoaded/total);  
//this is what sets the number of bytes loaded  
\_parent.bytes = int(isloaded/1000) add " KB of " add int(total/1000) add " KB";  
//this is what sets the percentage each frame   
\_parent.percent = int§ add “% LOADED”;  
//this is what sets the location of the preloader bar  
\_parent.bar.\_xscale = p;

if (Number§\>Number(99)) {  
\_parent.\_parent.gotoAndPlay(Number(2));  
\_parent.gotoAndStop(“off”);  
\_parent.doneLoading = 1;  
} else {  
\_parent.\_parent.gotoAndPlay(Number(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:** [April 8, 2003, 10:28pm UTC](https://forum.kirupa.com/t/preloader-not-preloading-enough/17753/2 "2003-04-08T22:28:31Z")

</div>

also to get the source fla go to [http://www.thisislondonclub.com/foraltaf/main.fla](http://www.thisislondonclub.com/foraltaf/main.fla)

---

<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:** [April 8, 2003, 11:53pm UTC](https://forum.kirupa.com/t/preloader-not-preloading-enough/17753/3 "2003-04-08T23:53:21Z")

</div>

it seems to be loading after the 12% mark on the preloader.

---

<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:** [April 9, 2003, 2:37am UTC](https://forum.kirupa.com/t/preloader-not-preloading-enough/17753/4 "2003-04-09T02:37:19Z")

</div>

Even though you say you hate hockey (unlike I), I will try to help. I use either the component preloader (which I think I found in the forums here) or LostinBeta’s version:

[http://www.kirupa.com/developer/mx/percentagepreloader.htm](http://www.kirupa.com/developer/mx/percentagepreloader.htm)

Much easier and better than what you are doing, I think. I didn’t really read your code. This one works though.  
Good luck, go Coyotes (next year).  
(-:

---

<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:** [April 9, 2003, 2:47am UTC](https://forum.kirupa.com/t/preloader-not-preloading-enough/17753/5 "2003-04-09T02:47:01Z")

</div>

cool cool thanks friend
