# Total Preloader

**URL:** <https://forum.kirupa.com/t/total-preloader/28004>\
**Category:** flash\
**Created:** [August 8, 2003, 8:29pm UTC](https://forum.kirupa.com/t/total-preloader/28004 "2003-08-08T20:29:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![HelloKittyGurl](https://avatars.discourse-cdn.com/v4/letter/h/3be4f8/32.png) [@HelloKittyGurl](https://forum.kirupa.com/u/HelloKittyGurl)\
**Post date:** [August 8, 2003, 8:29pm UTC](https://forum.kirupa.com/t/total-preloader/28004/1 "2003-08-08T20:29:55Z")

</div>

Hello Everyone!  
I have a long movie in my intro and need a preloader that will load the entire movie before playing. I have one now which preloads it but when I watch it on a slower computer it will skip and slowdown. :cool: Where as other flash movies on other sites once they are loaded just play smothly. I was wondering if anyone could give me a link that will totally preload the movie before playing so my movie will run smoothly.:d: or anything else I can try?  
This is what I have done so far, I put my music in to the library, and streamed it. I also have a preloader with this script,  
[AS]loadedbytes = getBytesLoaded();  
totalbytes = getBytesTotal();  
loadedkbytes = Math.ceil(loadedbytes/1024);  
totalkbytes = Math.ceil(totalbytes/1024);  
if (loadedbytes == totalbytes) {  
gotoAndPlay(“1”, 1);  
}  
frame = int(loadedbytes/(totalbytes/100));  
loader.gotoAndStop(frame);  
[/AS]  
But again the preloader is still not loading the movie completely. I have tried to search but I still can’t find one that is good.  
Thanks again,  
Roxy Gurl

---

<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:** [August 9, 2003, 2:23am UTC](https://forum.kirupa.com/t/total-preloader/28004/2 "2003-08-09T02:23:44Z")

</div>

That seems like a perfectly good preloading code, and it will only run as soon as the movie is fully loaded. The skips and slowdowns seem to me as a result of a poor CPU, not lack of loading. I think your movie is just too heavy for that computer to play (you said it was slow, did you mean it’s cpu or its internet?).

---

<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:** [August 18, 2003, 9:57pm UTC](https://forum.kirupa.com/t/total-preloader/28004/3 "2003-08-18T21:57:21Z")

</div>

The CPU is slow not the internet. Would it help if I did a frames preloader? So it would make sure the total frames are loaded before playing? Thanks again for the reply.  
Peace,  
Roxy Gurl

---

<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:** [August 19, 2003, 1:01pm UTC](https://forum.kirupa.com/t/total-preloader/28004/4 "2003-08-19T13:01:27Z")

</div>

The CPU slowdowns are probably due to your movie being too heavy for the CPU – large MovieClip’s moving, Alpha fades, Shape tweens, all of these can cause your movie to slow and skip.

---

<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:** [August 19, 2003, 1:09pm UTC](https://forum.kirupa.com/t/total-preloader/28004/5 "2003-08-19T13:09:24Z")

</div>

I’ve had the same problem (I think): I had a move that played perfectly well on its own, which became awfully slow when loaded :-\ I still don’t know how to solve that… ☹
