# Preloader....again..!

**URL:** https://forum.kirupa.com/t/preloader-again/13434
**Category:** Uncategorized
**Created:** [February 13, 2003, 5:21am UTC](https://forum.kirupa.com/t/preloader-again/13434 "2003-02-13T05:21:42Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![harakiri\_vfx](https://avatars.discourse-cdn.com/v4/letter/h/ecccb3/32.png) [@harakiri\_vfx](https://forum.kirupa.com/u/harakiri_vfx)
#### Post date: [February 13, 2003, 5:21am UTC](https://forum.kirupa.com/t/preloader-again/13434/1 "2003-02-13T05:21:42Z")

</div>

i’m trying to create a preloader that will only load 1 scene (the main scene) then when the user clicks on a button, the scene that the button takes you to loads…

would i use the ifFramesLoaded command like so:

if (\_framesloaded\>= \*“kbs/number of frames” \* ) {  
gotoAndPlay (2);  
} else {  
gotoAndPlay (1);  
}

would i use a simple preloader like that for each scene?  
or is there another , more proper way to do it…??

---

<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: [February 13, 2003, 8:05am UTC](https://forum.kirupa.com/t/preloader-again/13434/2 "2003-02-13T08:05:13Z")

</div>

you can’t load scenes individually.

Scenes make up your entire .swf file, and you need to preload your entire .swf file. If you only preload only 1 Scene, then your movie will lag while playing because the rest of the file is still left loading.

I recommend using loadMovie() to load in each of your sections.

Preloader Help:  
[http://www.kirupaforum.com/showthread.php?s=&threadid=15060](http://www.kirupaforum.com/showthread.php?s=&threadid=15060)

loadMovie() Help:  
[http://www.kirupaforum.com/showthread.php?s=&threadid=14930](http://www.kirupaforum.com/showthread.php?s=&threadid=14930)

---

<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: [February 16, 2003, 1:58am UTC](https://forum.kirupa.com/t/preloader-again/13434/3 "2003-02-16T01:58:10Z")

</div>

ahh okie…i see…

that makes some logical sense…

thanks beta…

---

<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: [February 16, 2003, 2:10am UTC](https://forum.kirupa.com/t/preloader-again/13434/4 "2003-02-16T02:10:03Z")

</div>

this is probably a silly question but…

when i execute the loadmovie command…

will the loaded movie come u p straight away? or do i need to create a preloader for this to pass more time??

i think i saw an example of this somewhere before???  
probably one of 2advanced’s sites…??

---

<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: [February 16, 2003, 3:03am UTC](https://forum.kirupa.com/t/preloader-again/13434/5 "2003-02-16T03:03:17Z")

</div>

Yes, you need to add a preloader to each .swf file so there is no empty gap between loading.

Just note… for a preloader on a loaded movie, use “this” instead of “\_root”

So if it says \_root.something change it to this.something.
