HOME | DD

Flash-R-Us β€” Preloader Tutorial

Published: 2005-01-09 02:38:03 +0000 UTC; Views: 10386; Favourites: 70; Downloads: 2658
Redirect to original
Description Flash 'R' Us Tutorial

Preloader construction

Author:
Skill level: 3
Teaches:Bandwidth Profiler,Dynamic Textfields,Preloaders.


Orginal Source of tut
[link]
(If you like this tut and want to fav it, pls fav at this link)
Related content
Comments: 35

The-Sonic-X [2013-07-14 15:27:09 +0000 UTC]

I fixed all the errors by myself.

πŸ‘: 0 ⏩: 0

RaeKage [2009-10-30 23:28:27 +0000 UTC]

the actionscript has errors...is there one where I can get it without errors?

πŸ‘: 0 ⏩: 0

AndrePaz [2008-03-14 03:06:35 +0000 UTC]



this appeared when i tried to preview the animation (in spanish, though): Capa--> Layer, Fotograma-->frame, Escena--->Scene.

Escena=Escena 1, Capa=Capa 8, Fotograma=1: Line 6: La declaraciΓ³n debe aparecer dentro del controlador onClipEvent
+Math.floor((_root.getBytesLoaded()/1024))+" de "

Escena=Escena 1, Capa=Capa 8, Fotograma=1: Line 8: La declaraciΓ³n debe aparecer dentro del controlador onClipEvent
this.info2orcentaje+ "%";

Escena=Escena 1, Capa=Capa 8, Fotograma=1: Line 9: La declaraciΓ³n debe aparecer dentro del controlador onClipEvent
frame = Math.floor(porcentaje/10);

Escena=Escena 1, Capa=Capa 8, Fotograma=1: Line 10: La declaraciΓ³n debe aparecer dentro del controlador onClipEvent
this.gotoAndStop(frame);

Escena=Escena 1, Capa=Capa 8, Fotograma=1: Line 11: La declaraciΓ³n debe aparecer dentro del controlador onClipEvent
if (porcentaje == 100) {

Escena=Escena 1, Capa=Capa 8, Fotograma=1: Line 14: Se ha detectado un '}' inesperado
}

πŸ‘: 0 ⏩: 0

Lektronk [2006-09-16 05:30:13 +0000 UTC]

=[ i did everything how you said to do it and i keep getting

**Error** Symbolreloader, layer=actions, frame=1:Line 9: Syntax error.
_root.play();

**Error** Symbolreloader, layer=actions, frame=1:Line 10: Unexpected '}' encountered
}

Total ActionScript Errors: 2 Reported Errors: 2

πŸ‘: 0 ⏩: 0

LucaPavone [2006-09-11 01:30:18 +0000 UTC]

Just what I needed!
Thanks!

πŸ‘: 0 ⏩: 0

Dr-Suicide [2006-07-14 14:00:06 +0000 UTC]

Hey where can I put this preloader for a dress up game? I added an extra frame at the start, and put my game on the next fram... i did what the tut said, and when I test all it does is flash back and forth from the game to the preloader... lol im shit at this type of thing, and there is probally just something relly obvious wrong...

and another thing

πŸ‘: 0 ⏩: 1

little-teenager-sam In reply to Dr-Suicide [2006-09-01 13:13:57 +0000 UTC]

put actionscript: stop(); at the FRAME where the the preloader is, and where the game is. it's shouldn't loop now

πŸ‘: 0 ⏩: 0

Miu3 [2005-09-01 13:18:36 +0000 UTC]

Hi,can i asc something?I have flash MX O.K. i tryed to make that preloader but when i added into the frame of the *actions layer* the codes then it shoved me errors Did i maded something wrong or are thous codes wrong?
Question two, should the fill bar move?
Question three,when i make in a new layer the dynamic text box (still in the preloader symbol) then shoul i write there 100%,or let it empty?
Sory that im bothering you

πŸ‘: 0 ⏩: 1

Flash-R-Us In reply to Miu3 [2005-09-11 19:23:05 +0000 UTC]

give :iconh3llbringner: a note
hes the one who created the tutorial

πŸ‘: 0 ⏩: 0

Ekin-Jones [2005-04-13 22:54:55 +0000 UTC]

I also got the same deal as ~monkeeappelz with the two errors, is it because I'm using A later version of flash?(2004 MX Professional?)

πŸ‘: 0 ⏩: 1

Flash-R-Us In reply to Ekin-Jones [2005-04-14 01:34:08 +0000 UTC]

try consulting the orginal creator of this flash. I just host his flash tutorial.

πŸ‘: 0 ⏩: 1

Ekin-Jones In reply to Flash-R-Us [2005-04-14 02:52:06 +0000 UTC]

Went to the source, fixed the problem. Thanks for these tutorials, really great

πŸ‘: 0 ⏩: 0

k0ngle [2005-02-22 13:47:11 +0000 UTC]

it dosent work

πŸ‘: 0 ⏩: 0

mewtaila [2005-02-20 06:22:50 +0000 UTC]

Awesome, just what a Flash n00b like myself needs!! ^_^\'\'

πŸ‘: 0 ⏩: 0

zaceryspud02 [2005-02-14 08:52:56 +0000 UTC]

Oh this is much cleaner then the way I've been doing it. Mainly because mine gets in a code loop enless reading 99% instead of 100. The code make the text box show 2 more percent then is accurate. This is because mine doesn't use Math.round to round the number. I did not know of this script to be honest. Thanks .

This is how I used to do it just so you know ^^
Oh my "loadbar" and "textDisplay" are in a movie so 'onClipEvent' is needed.

onClipEvent (enterFrame) {
percent -= (percent-((_parent.getBytesLoaded()/_par ent.getBytesTotal())*100))*.25;
TEXTDISPLAY = int(percent)+2+"%";
LOADBAR._width = int(percent);
if (percent>99) {
_parent.gotoAndPlay(2);
}
}


Again thanks .

πŸ‘: 0 ⏩: 0

lacewing [2005-02-12 04:35:30 +0000 UTC]

*blinks at it* DAMN! ANd I've been wondering how that works! THANKS! now I have something to start with...

πŸ‘: 0 ⏩: 0

monkeeappelz [2005-01-30 03:02:48 +0000 UTC]

oh actually i figured it out!!. whoa.. sweet dude thanks!!! ^__^.. but just an extra question if i want to put a play button after the preloader has finished how do i do that?

πŸ‘: 0 ⏩: 2

Neozuku In reply to monkeeappelz [2006-05-24 18:32:25 +0000 UTC]

yah, how did you? bcz I couldn't do it:s

πŸ‘: 0 ⏩: 0

h3llbringer In reply to monkeeappelz [2005-01-31 20:56:55 +0000 UTC]

Just make a keyframe right after the preloader one, (add stop(); to the script) and put your button there.

πŸ‘: 0 ⏩: 0

monkeeappelz [2005-01-30 02:06:25 +0000 UTC]

spanx a lot!!! ^___^d.. now my animations can look funky and professional!.. alway wanted a preloader except just two things.. i tried to make it following the instructions but it errors kept coming up.. saying the

Symbol=FillBar, Layer=Actions, Frame=1: Line 10: Unexpected '?' encountered
????_root.play();

Symbol=FillBar, Layer=Actions, Frame=1: Line 11: Unexpected '}' encountered
}

am i supposed to substitute something into the ???? before the _root.play(); part?.. and i dont know why but the second error shouldnt really be an error should it?.. cos the } closes of the last coding doesnt it?.. despite the fact that ive been taught coding before.. im still not actionscripting compatible and friendly.. -___-"

and the second thing was, as u can see from the error thingy, is my actions layer supposed to be within my FillBar symbol? or Preloader symbol..

bah damn coding.. so evil.. *waves angry fist in air*..

πŸ‘: 0 ⏩: 0

Liquid-Skin [2005-01-22 09:52:44 +0000 UTC]

Alright, now I can do the preloader.. the problem now is, how do I put my flash animation in it so that when it finishes loading it will play my animation?

πŸ‘: 0 ⏩: 1

h3llbringer In reply to Liquid-Skin [2005-01-31 20:56:05 +0000 UTC]

Just put the preloader into the first keyframe, and make sure the keyframe has the stop(); actionscript in it.

πŸ‘: 0 ⏩: 1

Liquid-Skin In reply to h3llbringer [2005-02-01 01:58:31 +0000 UTC]

Ahh.. ok Thanks so much for the info!

πŸ‘: 0 ⏩: 1

h3llbringer In reply to Liquid-Skin [2005-02-01 02:39:34 +0000 UTC]

No prob, hope you get it working.

πŸ‘: 0 ⏩: 0

Neryam [2005-01-09 15:00:54 +0000 UTC]

Thweet!! I've been wanting to make one for ages.. now I finally can. Thx!

πŸ‘: 0 ⏩: 1

h3llbringer In reply to Neryam [2005-01-09 17:24:51 +0000 UTC]

Thweet

πŸ‘: 0 ⏩: 0

steven12y [2005-01-09 03:04:02 +0000 UTC]

wow thats hard...i couldnt make it!

πŸ‘: 0 ⏩: 1

h3llbringer In reply to steven12y [2005-01-09 05:06:00 +0000 UTC]

>_< what didn't you understand?

πŸ‘: 0 ⏩: 1

steven12y In reply to h3llbringer [2005-01-09 06:38:01 +0000 UTC]

umm the first thing that got me confused when i tried was the preloader symbol thing. were those layers in it or not in it? o_o
2nd would be at "last steps"..where were we suppose to put the stop();, in the actions? but then again maybe it didnt work since it had nothing to preload? o_o

πŸ‘: 0 ⏩: 1

h3llbringer In reply to steven12y [2005-01-09 09:52:00 +0000 UTC]

There are layers on the preloader symbol (see the "last steps" slide)
You put the stop(); and the preloader in the first frame of the animation

And you can test it out by importing a large image into the 2nd frame. That'll give it something to preload, and then go to Control > Test Movie, View > Show Streaming

>_> I hope this helps.

πŸ‘: 0 ⏩: 1

steven12y In reply to h3llbringer [2005-01-09 17:22:19 +0000 UTC]

okay thanks

πŸ‘: 0 ⏩: 0

wingedcentaur [2005-01-09 02:48:03 +0000 UTC]

Nice tutorial! Very explainatorial...is that a word?

πŸ‘: 0 ⏩: 2

JLaKe4 In reply to wingedcentaur [2006-12-22 13:48:01 +0000 UTC]

im having a problem with this tutorial. i have finished it but when i open up my cartoon the preloader is not in my lirbary.. do i have to save it and how. please help.

Josh

πŸ‘: 0 ⏩: 1

wingedcentaur In reply to JLaKe4 [2007-01-28 05:06:47 +0000 UTC]

Why did you comment me?

πŸ‘: 0 ⏩: 0

h3llbringer In reply to wingedcentaur [2005-01-09 05:04:40 +0000 UTC]

Nope, I don't think it's a word
Thanks!

πŸ‘: 0 ⏩: 0