Click to See Complete Forum and Search --> : preloader question
kasha
08-13-2006, 09:15 AM
hi everyone,
i built a preloader in Flash, now how do i use it?
do i put the preloader frames at the beginning of my flash movie, or vice versa? i tried both and the result was a fiasco. but, maybe I'm not doing it right. thansk for your help!
Wiz Creations
08-14-2006, 12:28 AM
Put the preloaders first. Not sure if you need this, but it may be useful:
http://www.smartwebby.com/Flash/Flash_simple_preloader.asp
kasha
08-14-2006, 11:01 AM
that tutorial was helpful, thanks!
it works for all my swf's except for those that need to load external images. Is there a line of code I need to put into the basic preload script to get this to work?
this is the script:
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);
}
Wiz Creations
08-16-2006, 12:14 PM
I don't really use flash, so i couldn't say.
crazycoder
08-18-2006, 06:03 PM
you have to put this part:
if (myLoaded == myTotal) {
gotoAndStop(3);
} else {
gotoAndPlay(1);
}
in frame 2 and then put content in frame 3
See www.gotoandlearn.com he has a "Basic Flash Preloader" tutorial.