Preloaders

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

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

alright :slight_smile:

well;

http://www.arch-nemesis.net/artwork/preloader.html

I used this tutorial;

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)

Here’s My Preloader

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…

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

http://www.arch-nemesis.net/artwork/

download archnem_preloader.zip it’s the fla file for my stuff

*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.

oh, that makes sense.

lemme try adjusting it to the pix width of my bar

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

Thanks Unflux, Mlk and r0ss for the help!

no prob =)

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:

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

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?