# Only show Preloader once

**URL:** <https://forum.kirupa.com/t/only-show-preloader-once/201336>\
**Category:** flash\
**Created:** [September 20, 2006, 3:58pm UTC](https://forum.kirupa.com/t/only-show-preloader-once/201336 "2006-09-20T15:58:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![skriblez](https://avatars.discourse-cdn.com/v4/letter/s/a5b964/32.png) [@skriblez](https://forum.kirupa.com/u/skriblez)\
**Post date:** [September 20, 2006, 3:58pm UTC](https://forum.kirupa.com/t/only-show-preloader-once/201336/1 "2006-09-20T15:58:05Z")

</div>

i searched the forum and couldnt really find anything regarding my issue, or maybe i just used the wrong terms :ponder:

Anyways, what i want to happen is when i click on a menu item, a preloader pops up and then the content after its been loaded. Yeah ive done thats no biggie. Now lets say i click on it again i dont want the preloader to show up this time as its already been loaded.

Currently im calling an external preloader, and once the stuff has loaded, the parent skips to the next frame. I tried to put this into the parent frame but nope it didn’t work.

```auto

total_bytes = this.getBytesTotal();
loaded_bytes = this.getBytesLoaded();
if (loaded_bytes == total_bytes) {
    nextFrame();
} 

    createEmptyMovieClip("preloader", 2);
    preloader.loadMovie("preloader.swf");

stop();

```

I hope i was clear in tryin to explain that 😛
