I am currently trying to make a very simple preloader
that increases the alpha of a stationary movie clip
as main movie loads…
can anyone please help for my actionscripting sucks…
please help!
Frame 1…
bytes_loaded = Math.round(_root.getBytesLoaded()/1000);
bytes_total = Math.round(_root.getBytesTotal()/1000);
_root.loadClip._alpha = bytes_loaded/bytes_total*100;
if (bytes_loaded == bytes_total) {
gotoAndPlay(3);
delete bytes_loaded;
delete bytes_total;
}
(where loadClip is the instance name of your clip you want to have the alpha change to)
Frame 2…
gotoAndPlay(1);
Frame 3…
Movie Starts.
Thanks for taking the time to help
out a slow coder! Thanks:)
No problem I just hope it works (or worked)
Lost, is it realy beneficial to delete the variables? I have never done that although the preloader I use myself is almost an exact duplicate…Never even thought to delete the variables.
I actually don’t know, but I do it anyway for some reason. Something just told me to as I was writing this code.
I am actually writing a tutorial on this preloader as I type this, and I am going to see if Kirupa will add it. Since the only percentage preloader tutorial on his site involves the preloader component, which I seriously can not stand!
Components are the devil :evil:
I have that guestbook tut coming and I’m going to do an e-mail form in flash since it is becoming an FAQ…
too frequently I might add…
“Help me with my preloader…”
“Preloader trouble…”
“Preloader this…”
“Preloader that…”
That was why I originally stopped helping in the forums when they were back on eZboard. I got sick of seeing the same questions over and over and over again. People are too lazy to do their own search when the question that they are asking has been asked a thousand times and the answers are already there…
Sorry…
Peace,
Jubs
No I completely understand.
It is different when people ask preloader questions that aren’t like normal preloaders, such as this question asked in this thread.
But when people say they can’t even get any kind of working preloader, I feel like… ripping my hair out!..lol.
It is like the easiest thing to do in Flash other than using a stop() action or a gotoAndPlay(frame#) action…lol.