# Need preloader help!

**URL:** <https://forum.kirupa.com/t/need-preloader-help/9617>\
**Category:** Uncategorized\
**Created:** [December 15, 2002, 8:01am UTC](https://forum.kirupa.com/t/need-preloader-help/9617 "2002-12-15T08:01:11Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![D101](https://avatars.discourse-cdn.com/v4/letter/d/ed8c4c/32.png) [@D101](https://forum.kirupa.com/u/D101)\
**Post date:** [December 15, 2002, 8:01am UTC](https://forum.kirupa.com/t/need-preloader-help/9617/1 "2002-12-15T08:01:11Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 15, 2002, 8:20am UTC](https://forum.kirupa.com/t/need-preloader-help/9617/2 "2002-12-15T08:20:04Z")

</div>

Frame 1…

```auto

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…

```auto

gotoAndPlay(1);

```

Frame 3…

Movie Starts.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 15, 2002, 9:47pm UTC](https://forum.kirupa.com/t/need-preloader-help/9617/3 "2002-12-15T21:47:30Z")

</div>

Thanks for taking the time to help  
out a slow coder! Thanks:)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 15, 2002, 11:02pm UTC](https://forum.kirupa.com/t/need-preloader-help/9617/4 "2002-12-15T23:02:28Z")

</div>

No problem 🙂 I just hope it works (or worked) 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 15, 2002, 11:33pm UTC](https://forum.kirupa.com/t/need-preloader-help/9617/5 "2002-12-15T23:33:56Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 15, 2002, 11:47pm UTC](https://forum.kirupa.com/t/need-preloader-help/9617/6 "2002-12-15T23:47:45Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 16, 2002, 12:05am UTC](https://forum.kirupa.com/t/need-preloader-help/9617/7 "2002-12-16T00:05:25Z")

</div>

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 ![](http://www.livetoskateboard.com/curious/jubba.gif)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 16, 2002, 12:15am UTC](https://forum.kirupa.com/t/need-preloader-help/9617/8 "2002-12-16T00:15:09Z")

</div>

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.
