PDA

View Full Version : Preloader problems


rehabisforquitters
02-02-2006, 10:31 PM
Okay, here's the situation. I have made a preloader for my flash movie, Sixxen. I used a tutorial and I came up with a problem, being that whenever I go to watch the movie, The preloader loads the movie, but when it shows that it's 100% done in the text box, The actual loader bar is only one fourth of the way to the end of the loader! How do I solve this?

MrNaPaLm32
02-02-2006, 10:39 PM
ive done this several times(as you can see in my movies) iim pretty sure it has to do with the pixels to % ratio. post the preloader actionscript, and maybe i can help.

rehabisforquitters
02-02-2006, 10:42 PM
Here it is. By the way it's with actionscript 1.0, If that has anything to do with it.


myLoaded = Math.round(getBytesLoaded());
myTotal = Math.round(getBytesTotal());
myPercent = myLoaded/myTotal;
myBar._width = myPercent*150;
myText = Math.round(myPercent*100)+"%";
if (myLoaded == myTotal) {
gotoAndStop(3);
} else {
gotoAndPlay(1);
}


EDIT: I figgered it out. What was screwing it up was that the width was supposed to be 150 px, when mine was at 474 px. Thanks for the help anyway.