# Preload is working and not working

**URL:** <https://forum.kirupa.com/t/preload-is-working-and-not-working/29042>\
**Category:** Uncategorized\
**Created:** [August 21, 2003, 2:14pm UTC](https://forum.kirupa.com/t/preload-is-working-and-not-working/29042 "2003-08-21T14:14:58Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![lampe](https://avatars.discourse-cdn.com/v4/letter/l/c2a13f/32.png) [@lampe](https://forum.kirupa.com/u/lampe)\
**Post date:** [August 21, 2003, 2:14pm UTC](https://forum.kirupa.com/t/preload-is-working-and-not-working/29042/1 "2003-08-21T14:14:58Z")

</div>

hey there,

i made the tutorial you can find [here but when i published my [URL=http://users.pandora.be/xlampex]website](http://www.kirupa.com/developer/actionscript/preloader.htm) on the web, it takes some seconds before you see the preloader… Normally you shouldn’t see a white screen (i’m talking about the popup-window here…) but immediately the preloader. So, the preloader is working, but not immediately. How can I fix this?  
Thanks…

lampe  
ps: the website is not finished yet, duuh…

---

<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:** [August 21, 2003, 2:27pm UTC](https://forum.kirupa.com/t/preload-is-working-and-not-working/29042/2 "2003-08-21T14:27:41Z")

</div>

Sounds like there’s a lot of data to load before the first frame of your movie can be displayed. Test the movie inside flash (by pressing ctrl+enter) and open the bandwidth profiler (View \>\> Bandwidth Profiler) this gives you a break down of how many bytes each frame is.

Do you use attachMovie a lot? If so, any movie clip which is exported for actionscript in the library has to be loaded in frame one (just in case it is required straight away) this can often cause the problem you are experiencing.

The best solution I’ve come across for this is to make your preloader a seperate movie that loads your main movie into \_level 1. This lets you have a v. small, quick appearing preloader loading a much larger movie

Hope this helps, let me know if you’re still having problems 😛

---

<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:** [August 21, 2003, 2:33pm UTC](https://forum.kirupa.com/t/preload-is-working-and-not-working/29042/3 "2003-08-21T14:33:37Z")

</div>

please, can you explain me how to do so? (about that level\_0 and level\_1 thing…) It would be a great help…

lampe  
‘yes, i’m a newbee…’:nerd:

---

<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:** [August 21, 2003, 2:47pm UTC](https://forum.kirupa.com/t/preload-is-working-and-not-working/29042/4 "2003-08-21T14:47:51Z")

</div>

what sort of preloader are you after? one that shows the percent loaded, or one that works around what frames have been loaded so far?

---

<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:** [August 21, 2003, 2:56pm UTC](https://forum.kirupa.com/t/preload-is-working-and-not-working/29042/5 "2003-08-21T14:56:06Z")

</div>

for the preloader, see my first post (the link). I have added a small movieclip as you can see on my site. So no percentage of statusbar, just a looping movieclip.  
My question is, how can i link the preloader to the actual website (still using that small actionscript). (so, where and what should i write about that level\_0 and level\_1)?

Thanks

Lampe

---

<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:** [August 21, 2003, 3:02pm UTC](https://forum.kirupa.com/t/preload-is-working-and-not-working/29042/6 "2003-08-21T15:02:40Z")

</div>

try this:

```auto

if (_level1._framesloaded>=_level1._totalframes) {
	_level1.gotoAndPlay (2);
} else {
	_leve1.gotoAndPlay (1);
}

```

in the loader movie. Let me know how you get on 😉

---

<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:** [August 22, 2003, 6:35am UTC](https://forum.kirupa.com/t/preload-is-working-and-not-working/29042/7 "2003-08-22T06:35:20Z")

</div>

i have tried it with this script, but stilL the same problem…

What’s the thing with the levels anyway? Can you explain that please?

thanks

lampe  
’other solutions more than welcome…’
