HOME | DD

Published: 2004-10-21 06:27:43 +0000 UTC; Views: 3705; Favourites: 41; Downloads: 801
Redirect to original
Description
This a tutorial i whipped up for users of Macromedia's Flash MX and above. Pr3eloaders are essiential part of animations/websites etc and keeps the user entertained while the movie is loading.for those who cant b bothered copying the code needed just copy and paste this to make life easier. I hope u find this usefull:
//in frame one:
totalsize = _root.getBytesTotal();
sofar = _root.getBytesLoaded();
progress = int((sofar/totalsize)*100)
progress_bar._xscale = progress;
play();
----------
//in Frame two:
//if progress bar is less than 100 go to and play frame 1
//or
//if progress bar = 100 go and play
if (progress == 100) {
wait._visible=0;
}else{
goToAndPlay(1)
}
DEMO:
download link: [link]
and demo of it working (190KB): [link]
Things too look out for:
Instance Name is the ".progress_bar" - it MUST be the same name (case sensitive).
Related content
Comments: 29
Atomic-Anteater [2010-01-19 21:48:13 +0000 UTC]
IT NEVER WORKS!!! *cry*
whatever i do, after my scene loads, it keeps swiching between the preloader and my game
👍: 0 ⏩: 0
piddycakes [2008-08-14 00:42:26 +0000 UTC]
didnt work!! its just flashes between the preloader bar& the 'main' scene picture. >:0 im frustrated
👍: 0 ⏩: 0
tommyray [2007-08-11 15:57:39 +0000 UTC]
nice one! one of the few flash preloader tutorials that works! cheers!
👍: 0 ⏩: 1
chichi2010 In reply to tommyray [2007-08-13 02:07:37 +0000 UTC]
Thanks! Glad it worked for you ^__^
👍: 0 ⏩: 0
dnalor [2007-05-29 14:31:32 +0000 UTC]
Great help thanks!!! Drinks on me if you ever come to South Africa
👍: 0 ⏩: 1
chichi2010 In reply to dnalor [2007-05-29 21:27:09 +0000 UTC]
Cheers!!! Been a few years since i went to SA ^__^
Thx for the fave too!
👍: 0 ⏩: 0
chichi2010 In reply to mr-darlington [2006-01-09 23:56:04 +0000 UTC]
thx for comment & fav!!
👍: 0 ⏩: 0
rustty [2005-09-07 21:56:50 +0000 UTC]
awesome tutorial about of loading in flash
men check out the club that I made about this
👍: 0 ⏩: 1
mechachaos [2005-08-16 16:25:27 +0000 UTC]
thx man. my m8 was trying to show me and made a right idiot of himself.
👍: 0 ⏩: 1
cosmy [2005-07-20 11:29:50 +0000 UTC]
Nope. it dd\idnt work on my pc. :S smthing's wrong..the loader wont load.
👍: 0 ⏩: 1
chichi2010 In reply to cosmy [2005-07-21 05:28:28 +0000 UTC]
hmm, odd
make sure u copied all the code correctly, not missing any "{" etc ...???
thx for giving my tutorial a go too
👍: 0 ⏩: 0
NES-dude [2005-07-10 19:49:38 +0000 UTC]
Thank you! I FINALLY made a preloader that ACTUALLY works!!!
👍: 0 ⏩: 1
chichi2010 In reply to NES-dude [2005-07-12 05:52:26 +0000 UTC]
your most welcome, im glad this helped you & thank you for the fave!!
👍: 0 ⏩: 0
DarkSaiyans-Da [2005-04-09 20:36:08 +0000 UTC]
Tried it...
Loved it...
Used it...
Great tut. Chi', simple yet affective.
👍: 0 ⏩: 1
Lain-Iwakuraa [2004-11-03 19:07:51 +0000 UTC]
thankyou for this. i have been wanting to know how to do these for so long. a few parts were a little confusing but i managed to figure it out.
👍: 0 ⏩: 1
chichi2010 In reply to Lain-Iwakuraa [2004-11-03 19:40:18 +0000 UTC]
no prob^^, glad u found it usfull, and thx for the fav!!!!
👍: 0 ⏩: 0
tonikflava [2004-10-21 20:32:45 +0000 UTC]
yeah this is awesome i no it will come in handy great wrk but all ur wrk is awesome
👍: 0 ⏩: 0
savann [2004-10-21 11:47:50 +0000 UTC]
Hmm. i should've paid attention to this when my teacher taught us that. arghh! haha. see tried adding a preloader but didn't work. so i removed it from my latest submission. :d excellent work chichi.
👍: 0 ⏩: 1
chichi2010 In reply to savann [2004-10-22 04:29:38 +0000 UTC]
hehe thanks!! the code used was actually from one of my flash lessons lol
👍: 0 ⏩: 0
chichi2010 In reply to auhyzal [2004-10-21 09:34:59 +0000 UTC]
thx!!, hope it becomes usefull
👍: 0 ⏩: 1
auhyzal In reply to chichi2010 [2004-10-21 19:35:26 +0000 UTC]
yeap im sure it will, i made a preloader for my animation but couldnt get the bar to fill wasnt sure were i went wrong so insead i took it out and just had the percentage running its cool though ill give your one ago thanks
👍: 0 ⏩: 0