# Need some help with Pre Loaders

**URL:** <https://forum.kirupa.com/t/need-some-help-with-pre-loaders/8028>\
**Category:** flash\
**Created:** [November 12, 2002, 7:55pm UTC](https://forum.kirupa.com/t/need-some-help-with-pre-loaders/8028 "2002-11-12T19:55:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![evader](https://avatars.discourse-cdn.com/v4/letter/e/e9a140/32.png) [@evader](https://forum.kirupa.com/u/evader)\
**Post date:** [November 12, 2002, 7:55pm UTC](https://forum.kirupa.com/t/need-some-help-with-pre-loaders/8028/1 "2002-11-12T19:55:33Z")

</div>

I need some help with making a pre-loader. I am simply looking for the most simple pre-loader I can get. I really don’t have any idea how to build one and/or where to even put it in my movie. I know there are alot of tutorials out there, I’ve tried a few but don’t seem to have any luck.

If anyone would be kind enough to help me out I would really appreciate it.

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:** [November 12, 2002, 8:10pm UTC](https://forum.kirupa.com/t/need-some-help-with-pre-loaders/8028/2 "2002-11-12T20:10:10Z")

</div>

Are you using scenes in your 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:** [November 12, 2002, 8:19pm UTC](https://forum.kirupa.com/t/need-some-help-with-pre-loaders/8028/3 "2002-11-12T20:19:47Z")

</div>

I’m not sure…lol

I’ve got a main MC and other SWF files load into it when the button is clicked. I think I need a pre-loader to display while the SWF’s load into the main movie.

Does that make any sense? Sorry but I’m very new to Flash and I’m not exactly sure about all this stuff.

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:** [November 12, 2002, 8:29pm UTC](https://forum.kirupa.com/t/need-some-help-with-pre-loaders/8028/4 "2002-11-12T20:29:19Z")

</div>

You know like… there are scenes(which I hate) like pages.  
Or do you use just movieclips… buttons and graphics  
So The other movies load into the main by loadMovie() action…?

Just add a keyframe in front of all your mcs, buttons and graphics on the main timeline  
no create a new textbox and type “Loading…” or something like that in there.  
now put the following actions on the keyframe

```php
if(_framesloaded >= _totalframes) {
_root.gotoAndStop(3);
}

```

this simply checks if all the frames are loaded. And if they are it goes to frame 3.  
BUT if you have an animation in the beginning of your movie make it gotoAndPlay(); so it’ll start playing the main timeline (if the animation is on the main timeline, not in some mc!)  
And now why did I tell it to go to frame 3 instead of 2???  
now add a new keyframe after the first one!  
and put the following actions on it

```php
_root.gotoAndPlay(1);

```

thi tells the main timeline to play the first frame.  
so we created a 2-frame-loop  
now you said something about swfs loading into the main movie.  
You have to make preloaders for all of them. one by one.  
BUT DO NOT USE \_ROOT if the movie is loaded to another movie \_root is now the main timeline of the main movie instead of the loaded one so use \_parent instead!

---

<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:** [November 13, 2002, 12:16am UTC](https://forum.kirupa.com/t/need-some-help-with-pre-loaders/8028/5 "2002-11-13T00:16:27Z")

</div>

Thanks Syko,

How would I make it so it started to play after a certain number of frames were loaded? Do I change the \_totalframes part? Lets say I wanted it to start playing after 15 frames were loaded…what do I change that to?

Thanks again.
