# Help with the preloader!

**URL:** https://forum.kirupa.com/t/help-with-the-preloader/158298
**Category:** Uncategorized
**Created:** [August 8, 2005, 9:06pm UTC](https://forum.kirupa.com/t/help-with-the-preloader/158298 "2005-08-08T21:06:55Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![webee](https://avatars.discourse-cdn.com/v4/letter/w/7cd45c/32.png) [@webee](https://forum.kirupa.com/u/webee)
#### Post date: [August 8, 2005, 9:06pm UTC](https://forum.kirupa.com/t/help-with-the-preloader/158298/1 "2005-08-08T21:06:55Z")

</div>

i have editorial.swf with a preloader coded:

onClipEvent (enterFrame) {  
var bytes = \_root.getBytesTotal();  
var bytes\_loaded = \_root.getBytesLoaded();  
if (bytes\_loaded == bytes) {  
\_root.gotoAndPlay(5);  
this.kirupatxt = “movie loaded”;  
} else {  
\_root.gotoAndStop(1);

- bytes\_loaded + “/” + bytes +"";  
}  
}

it has a button inside that calls 1.swf . 1.swf has also a preloader.

when i click to call 1.swf from the button it seems like it is loading but then suddenly it turns at the begining of editorial!
