# Preloader

**URL:** https://forum.kirupa.com/t/preloader/6323
**Category:** Uncategorized
**Created:** [October 4, 2002, 5:34am UTC](https://forum.kirupa.com/t/preloader/6323 "2002-10-04T05:34:24Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![ryuujin386](https://avatars.discourse-cdn.com/v4/letter/r/f4b2a3/32.png) [@ryuujin386](https://forum.kirupa.com/u/ryuujin386)
#### Post date: [October 4, 2002, 5:34am UTC](https://forum.kirupa.com/t/preloader/6323/1 "2002-10-04T05:34:24Z")

</div>

Ok, I have built my preloader, and put a stop on it when the loader’s done, bringing you to the frame with the “play movie” button, then when you click it the movie begins, but my question is, how do you make a preloader a PREloader?! It acts as part of the movie, and the whole movie loads before it plays, I’m not understanding the problem here

---

<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: [October 4, 2002, 7:53am UTC](https://forum.kirupa.com/t/preloader/6323/2 "2002-10-04T07:53:56Z")

</div>

Even though many people don’t do it this way anymore

I tend to put my preloader in a seperate Scene. Lets say I use Scene1 as my preloader scene. Configure the preloader to load Scene 2 and then when Scene 2 is loaded to stop at your start button.

Then have your start button gotoAndPlay Scene 2

I hope that was understandable…lol.

---

<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: [October 4, 2002, 4:28pm UTC](https://forum.kirupa.com/t/preloader/6323/3 "2002-10-04T16:28:46Z")

</div>

[size=1]and not to mention that there’s 100 tutorials on this exact  
thing out there. Kirupa even has some…imagine that! =)

- [http://www.kirupa.com/developer/mx/percentage\_loader.asp](http://www.kirupa.com/developer/mx/percentage_loader.asp)

- [http://www.kirupa.com/developer/mx/preloader\_component.asp](http://www.kirupa.com/developer/mx/preloader_component.asp)

and like I said, there’s tons of others on other boards as well.  
Hope this helps…

/unflux[/size]  
:cyclops:

---

<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: [October 4, 2002, 4:33pm UTC](https://forum.kirupa.com/t/preloader/6323/4 "2002-10-04T16:33:37Z")

</div>

You are right about that one unflux, but most of the tutorials you can find on this site or forum have to do with preloading in the same scene.

And well, if you noticed, people who use that method usually post about the same exact problem. I don’t know if maybe they are doing something wrong, or if it is just the method, but I do know that I have never had a problem when I use the preloader in a different Scene, so I stick with the method I know and trust.

---

<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: [October 4, 2002, 8:54pm UTC](https://forum.kirupa.com/t/preloader/6323/5 "2002-10-04T20:54:00Z")

</div>

here, this was just a preloader test, it’s not my actual movie, and it takes forever to load cause I put an MP3 on there, I had to have something big so I could see if the preloader worked, I put it on a site (I didn’t intend for it to be a nice site, lol)

[http://www.angelfire.com/apes/pyromonkey/](http://www.angelfire.com/apes/pyromonkey/)

and it’s taking FOREVER, so I’m assuming that it’s loading the whole movie, that was my question. I know there’s tutorials and everything.

And you mentioned it’s the old way of doing that? What do you do now? Is there another form of a preloader I havn’t heard of? Or just havn’t thought of

---

<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: [October 4, 2002, 9:13pm UTC](https://forum.kirupa.com/t/preloader/6323/6 "2002-10-04T21:13:51Z")

</div>

Ok, did you add your sound in the frames where your preloader starts?

If so, then that may be what is causing your problem. Flash might be trying to load the sound first, causing the delay in the preloader. This is only theory though. Try moving your sound to the frames AFTER your preloader.

As for the old method.

The old method of preloading is to put a preload in Scene1 and add these actions…

```auto
if (_framesloaded>=_totalframes) {
	gotoAndPlay(nextScene());
} else {
	gotoAndPlay (1);
}

```

That is how I do mine. The nextScene is like a gotoAndPlay the scene after this one. What this code says is that is the amount of frames loaded are greater than or equal to the total amount of frames then gotoAndPlay the next scene, but if they aren’t, then gotoAndPlay frame 1 of this scene to loop the loading animation.

Well I use more advanced with loading bars and stuff, but I am not going get into that right now.

---

<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: [October 4, 2002, 9:17pm UTC](https://forum.kirupa.com/t/preloader/6323/7 "2002-10-04T21:17:00Z")

</div>

alright, I’ll try that, I’m not on my computer right now, so I might submit my .fla file later if I’m still stumped

---

<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: [October 4, 2002, 10:21pm UTC](https://forum.kirupa.com/t/preloader/6323/8 "2002-10-04T22:21:02Z")

</div>

lost…pleeeeeeeeeease

get into that right now

i would really love to know how to make a preloader with the loading bars an %'s

cant find a tute! need to hear ti from a real person!

---

<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: [October 4, 2002, 10:52pm UTC](https://forum.kirupa.com/t/preloader/6323/9 "2002-10-04T22:52:55Z")

</div>

Here’s my crappy preloader (yes, it’s suposed to look bad, it’s a test for my movie)

---

<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: [October 5, 2002, 1:28am UTC](https://forum.kirupa.com/t/preloader/6323/10 "2002-10-05T01:28:20Z")

</div>

oops, it didn’t add the file

---

<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: [October 5, 2002, 1:46am UTC](https://forum.kirupa.com/t/preloader/6323/11 "2002-10-05T01:46:36Z")

</div>

[size=1]ok my mistake…didn’t notice that detail about it.

I also use a different scene for the preloader…matter of fact,  
almost identical to the way you do it…hehe. I guess great minds  
think alike. =)

Neo\_Clone01 - not sure you understand what it is that this code  
lostinbeta posted actually is. It doesn’t load % or display it. It  
simply checks to see of a certain frame (in this case all frames) of  
the next scene are loaded completely before it moves on to it. If  
not, then it simply loops within its own scene until the entire 2nd  
scene is loaded. Make sense?

There are tutes out there for % preloaders…let me find one and  
get back to you on it.

Personally, I think it’s a lot of extra code for something the visitor  
could care less about…just my ![](http://www.unflux.com/bb/2cents.gif).

/unflux[/size]  
:cyclops:

---

<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: [October 5, 2002, 1:55am UTC](https://forum.kirupa.com/t/preloader/6323/12 "2002-10-05T01:55:52Z")

</div>

that’s how you do it? What’d I do wrong in it??? It’s not an issue of loading the preloader, it’s an issue of showing it before the movie, lol, hmmmmmmmmmm

---

<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: [October 5, 2002, 2:17am UTC](https://forum.kirupa.com/t/preloader/6323/13 "2002-10-05T02:17:40Z")

</div>

[size=1]I put this together real quick so you can see what it is we  
are referring to. Hard to explain without an example to follow. I  
wrote it a little bit different from lostinbeta’s code for this  
example, but you will get the idea and see how his works just as  
well, if not better.

[preloader.fla](http://www.unflux.com/preloader.fla)

Let me know if you have any questions about it.

/unflux[/size]  
:cyclops:

---

<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: [October 5, 2002, 2:28am UTC](https://forum.kirupa.com/t/preloader/6323/14 "2002-10-05T02:28:31Z")

</div>

dead link :\*(

---

<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: [October 5, 2002, 2:38am UTC](https://forum.kirupa.com/t/preloader/6323/15 "2002-10-05T02:38:41Z")

</div>

[size=1]try again…sorry :-\

/unflux[/size]  
:cyclops:

---

<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: [October 6, 2002, 2:54am UTC](https://forum.kirupa.com/t/preloader/6323/16 "2002-10-06T02:54:12Z")

</div>

Is there another way to do a preloader? Like, at the very first frame put the movie “Loading…” or whatever, then on the next frame, is there some actionscript about onmovieload, or something, that, when the WHOLE movie is done loading, it plays the next frame, but it still loads and plays the first frame before that?

---

<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: [October 6, 2002, 3:25am UTC](https://forum.kirupa.com/t/preloader/6323/17 "2002-10-06T03:25:23Z")

</div>

You can’t play frames 1 and 3 at the same time if that is what you mean.

---

<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: [October 6, 2002, 3:29am UTC](https://forum.kirupa.com/t/preloader/6323/18 "2002-10-06T03:29:34Z")

</div>

I don’t think that’s what I mean… is it? like… having a preloader… umm… ugh, how do I say it. Does Flash, have some kinda actionscript, where after the movie is loaded, it plays a specific sequence?

---

<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: [October 6, 2002, 3:33am UTC](https://forum.kirupa.com/t/preloader/6323/19 "2002-10-06T03:33:36Z")

</div>

not unless you tell it to…here, lemme see if this helps…  
\<U\>These are Frames\</U\>  
[1][2][3][4][5][6]

[1] has preloader actions  
[2] has gotoAndPlay(1) actions in case your movie isn’t loaded  
[3] has gotoAndPlay(5)  
[4] has gotoAndPlay(4)  
[5] has gotoAndPlay(3)

Now your new sequence of playing will be…

[1][2][5][3][4][6]

Or something along those lines.

---

<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: [October 6, 2002, 3:37am UTC](https://forum.kirupa.com/t/preloader/6323/20 "2002-10-06T03:37:46Z")

</div>

wow, this must be annoying, but I totally didn’t get that. Why you would tell it to go back frames, cause it’d just keep playing them over… and what are the preloader actions?

Hmm… if this is getting way obnoxious I don’t NEED a preloader quite yet, I’ll live

[Next page](https://forum.kirupa.com/t/preloader/6323.md?page=2)
