# Preloaders

**URL:** <https://forum.kirupa.com/t/preloaders/33839>\
**Category:** Uncategorized\
**Created:** [October 24, 2003, 6:21am UTC](https://forum.kirupa.com/t/preloaders/33839 "2003-10-24T06:21:14Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![ArchNemesis](https://avatars.discourse-cdn.com/v4/letter/a/a8b319/32.png) [@ArchNemesis](https://forum.kirupa.com/u/ArchNemesis)\
**Post date:** [October 24, 2003, 6:21am UTC](https://forum.kirupa.com/t/preloaders/33839/1 "2003-10-24T06:21:14Z")

</div>

I’m having alot of preloader issues, was wondering if anyone could give me some good hands-on help… and maybe walk me through the creation of one…

I’ve tried 4-5 different tutorials with no success…

anyways, if someone willing to help could message me on AIM @ secksinamja …it would be greatly appreciated.

I could give a subdomain or provide domain hosting to someone who helps if they really want.

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:** [October 24, 2003, 7:01am UTC](https://forum.kirupa.com/t/preloaders/33839/2 "2003-10-24T07:01:23Z")

</div>

Hey we answer 'bout 6 or 7 preloader problems a day, just post your problems, anybody here can help =)

---

<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:** [October 24, 2003, 7:04am UTC](https://forum.kirupa.com/t/preloaders/33839/3 "2003-10-24T07:04:39Z")

</div>

alright 🙂

well;

[http://www.arch-nemesis.net/artwork/preloader.html](http://www.arch-nemesis.net/artwork/preloader.html)

I used this tutorial;

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

only I never added in the dynamic text area.

I’m wondering why the bar doesnt fill to 100%? (I’m not even sure the bar fills at all… lol)

---

<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:** [October 24, 2003, 7:29am UTC](https://forum.kirupa.com/t/preloaders/33839/4 "2003-10-24T07:29:40Z")

</div>

[Here’s My Preloader](http://24.150.116.177/docs/world/)

i used this code

on the actions layer  
Frame 1:  
loadpercent = “0%”;  
loadBytes = “0 of “+Math.round((\_root.getBytesTotal()/1024)\*1000)/1000+” Kb”;

Frame 2:  
loadPercent = (Math.floor(\_root.getBytesLoaded()/\_root.getBytesTotal()\*100)+"%");  
loadBytes = (Math.round((\_root.getBytesLoaded()/1024)\*1000)/1000+" Kb of “+Math.round((\_root.getBytesTotal()/1024)\*1000)/1000+” Kb");  
if (\_root.getBytesLoaded() == \_root.getBytesTotal()) {  
loadPercent = “100%”;  
loadBytes = (Math.round((\_root.getBytesLoaded()/1024)\*1000)/1000+" Kb of “+Math.round((\_root.getBytesTotal()/1024)\*1000)/1000+” Kb");  
gotoAndPlay(“Loaded”);  
}

Frame 3:  
gotoAndPlay(2);

Frame 4:  
play();

simple as that…

---

<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:** [October 24, 2003, 10:18am UTC](https://forum.kirupa.com/t/preloaders/33839/5 "2003-10-24T10:18:03Z")

</div>

post the exact code you used, ArchNemesis, plus maybe specs of you flash file (used sound, embedded fonts?)…

---

<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:** [October 24, 2003, 5:34pm UTC](https://forum.kirupa.com/t/preloaders/33839/6 "2003-10-24T17:34:46Z")

</div>

[http://www.arch-nemesis.net/artwork/](http://www.arch-nemesis.net/artwork/)

download archnem\_preloader.zip it’s the fla file for my stuff

---

<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:** [October 24, 2003, 5:40pm UTC](https://forum.kirupa.com/t/preloaders/33839/7 "2003-10-24T17:40:05Z")

</div>

> \*Originally posted by ArchNemesis \*  
> \*\*I’m wondering why the bar doesnt fill to 100%? (I’m not even sure the bar fills at all… lol) \*\*

This tutorial requires the % bar to be 100px wide. Each % is 1 px.

---

<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:** [October 24, 2003, 5:48pm UTC](https://forum.kirupa.com/t/preloaders/33839/8 "2003-10-24T17:48:26Z")

</div>

oh, that makes sense.

lemme try adjusting it to the pix width of my bar

---

<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:** [October 24, 2003, 5:55pm UTC](https://forum.kirupa.com/t/preloaders/33839/9 "2003-10-24T17:55:47Z")

</div>

Yeah, I just tested it and it seems to work.

Thanks Unflux, Mlk and r0ss for the help!

---

<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:** [October 24, 2003, 6:17pm UTC](https://forum.kirupa.com/t/preloaders/33839/10 "2003-10-24T18:17:52Z")

</div>

no prob =)

---

<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:** [October 30, 2003, 12:57pm UTC](https://forum.kirupa.com/t/preloaders/33839/11 "2003-10-30T12:57:19Z")

</div>

Hey guys,

I’ve tried the tutorial and have read through this forum and it’s still not seeming to work properly. These are the errors I get:

```auto
Scene=Scene 1, Layer=loadBar, Frame=1: Line 1: Statement must appear within on/onClipEvent handler
     bytes_loaded = Math.round(this.getBytesLoaded());

Scene=Scene 1, Layer=loadBar, Frame=1: Line 2: Statement must appear within on/onClipEvent handler
     bytes_total = Math.round(this.getBytesTotal());

Scene=Scene 1, Layer=loadBar, Frame=1: Line 3: Statement must appear within on/onClipEvent handler
     getPercent = bytes_loaded/bytes_total;

Scene=Scene 1, Layer=loadBar, Frame=1: Line 4: Statement must appear within on/onClipEvent handler
     this.loadBar._width = getPercent*100;

Scene=Scene 1, Layer=loadBar, Frame=1: Line 5: Statement must appear within on/onClipEvent handler
     this.loadText = Math.round(getPercent*100)+"%";

Scene=Scene 1, Layer=loadBar, Frame=1: Line 6: Statement must appear within on/onClipEvent handler
     if (bytes_loaded == bytes_total) {

```

So I then tried putting the code into the onClipEvent (frame 1) but still got the same message… I’m not sure exactly what I’m going wrong here. When I load the swf move, how exactly do I do that. I went Import Library - movie.swf then went to library, dragged the swf onto the 3rd frame. Is that right? The results I get are sporatic at best, but I always get the same error message as seen above. Sometimes there’s the load bar but no text. Then there’s the text at 100%. And sometimes there’s just swf, but it doesn’t play until you hit enter (I followed your lead and added play() on the frame where it starts).

Followed the tutorial from : [http://www.kirupa.com/developer/mx/percentagepreloader.htm](http://www.kirupa.com/developer/mx/percentagepreloader.htm)

Many thanks for all your help.

– Garatheus –

EDIT UPDATE:  
I’ve managed to get it to start the animation but I can’t see whether the progress bar works or not, and I still get those aweful errors… What am I to do?
