# CS4 Preloader trouble

**URL:** <https://forum.kirupa.com/t/cs4-preloader-trouble/291682>\
**Category:** flash\
**Created:** [July 3, 2009, 2:07am UTC](https://forum.kirupa.com/t/cs4-preloader-trouble/291682 "2009-07-03T02:07:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Liens](https://avatars.discourse-cdn.com/v4/letter/l/dbc845/32.png) [@Liens](https://forum.kirupa.com/u/Liens)\
**Post date:** [July 3, 2009, 2:07am UTC](https://forum.kirupa.com/t/cs4-preloader-trouble/291682/1 "2009-07-03T02:07:03Z")

</div>

Hi,

I’m making a flash game and I have this code for my preloader

```auto

public function SuperJetMan()
        {
            loaderInfo.addEventListener( Event.COMPLETE, onCompletelyDownloaded );
            loaderInfo.addEventListener( ProgressEvent.PROGRESS, onProgressMade );
        }
        public function onProgressMade( progressEvent:ProgressEvent ):void
        {
            trace(loaderInfo.bytesLoaded);
             loadingPercent.width= Math.floor( 250 * loaderInfo.bytesLoaded / loaderInfo.bytesTotal );
        }
        public function onCompletelyDownloaded( event:Event ):void
        {
            gotoAndStop(2);
        }

```

The loadingPercent symbol is a rectangle on frame1 of the movie. When I run it, no preloader shows. It just starts loading everything and then once it all loads, trace outputs “2247774”.

I unticked all the “Export for frame 1” options (except for preloader) and there’s only the preloader stuff in frame 1 of the movie, I’m not sure why it won’t work.
