# Preloader Won't Show - Can't find error

**URL:** <https://forum.kirupa.com/t/preloader-wont-show-cant-find-error/160209>\
**Category:** Uncategorized\
**Created:** [August 24, 2005, 4:59am UTC](https://forum.kirupa.com/t/preloader-wont-show-cant-find-error/160209 "2005-08-24T04:59:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasarius](https://avatars.discourse-cdn.com/v4/letter/j/ecccb3/32.png) [@jasarius](https://forum.kirupa.com/u/jasarius)\
**Post date:** [August 24, 2005, 4:59am UTC](https://forum.kirupa.com/t/preloader-wont-show-cant-find-error/160209/1 "2005-08-24T04:59:26Z")

</div>

I have a movie with a movie clip named “_preloader_.”

On the first frame of the main timeline I have this movie clip and a stop action. In side the preloader I have two frame and two layers. One for AS and one for the dynamic text to display the percentage. The text box is labled progress and it has the variable as progress as well.

Here is the code in frame one of the preloader:

```auto
kBytesLoaded = _parent.getBytesLoaded()/1024;
kBytesTotal = _parent.getBytesTotal()/1024;
kBytesRemaining = kBytesTotal-kBytesLoaded;
percentLoaded = 100*kBytesLoaded/kBytesTotal;
percentRemaining = 100-percentLoaded;
progress = Math.floor(percentRemaining) + ‘%’;

```

Here is the code in frame two of the preloader:

```auto
if (percentLoaded<99) {
	gotoAndPlay(2);
} else {
	_parent.play();
	stop();
}

```

Where am I going wrong?

Any help would be appreciated, thanks.

By the way, I’m using the _distress_ font so I had numbers embedded along with the “%” sign.
