# Another preloader question

**URL:** <https://forum.kirupa.com/t/another-preloader-question/150800>\
**Category:** Uncategorized\
**Created:** [June 10, 2005, 2:12pm UTC](https://forum.kirupa.com/t/another-preloader-question/150800 "2005-06-10T14:12:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![grenouille](https://avatars.discourse-cdn.com/v4/letter/g/f6c823/32.png) [@grenouille](https://forum.kirupa.com/u/grenouille)\
**Post date:** [June 10, 2005, 2:12pm UTC](https://forum.kirupa.com/t/another-preloader-question/150800/1 "2005-06-10T14:12:44Z")

</div>

hi,

i made a preloader this way :

```auto
 
stop();
_root.progress._xscale = 0;
_root.onEnterFrame = function() {
var bytes = _root.getBytesTotal();
var bytes_loaded = _root.getBytesLoaded();
if (bytes_loaded == bytes) {
_root.gotoAndPlay(2);
} else {
scale = bytes_loaded/bytes;
_root.progress._xscale = scale;
}
}

```

“progress” is the instance name of a rectangle - it shows the progression of the loading.  
strange thing is : when loading is done, the movie goes to frame 2 of the timeline, but it doesn’t play at all, it stops there. i checked if there was not a stop(); command somewhere, but the script of the preloader is the only script there is.  
my hair is becoming gray. i know it’s something obvious, but i don’t seem to find it.  
any help on this would be very much appreciated.

thnx in advance,

grenouille.
