# Preloader help please

**URL:** https://forum.kirupa.com/t/preloader-help-please/168994
**Category:** flash
**Created:** [November 11, 2005, 11:27pm UTC](https://forum.kirupa.com/t/preloader-help-please/168994 "2005-11-11T23:27:48Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![bernardocw](https://avatars.discourse-cdn.com/v4/letter/b/439d5e/32.png) [@bernardocw](https://forum.kirupa.com/u/bernardocw)
#### Post date: [November 11, 2005, 11:27pm UTC](https://forum.kirupa.com/t/preloader-help-please/168994/1 "2005-11-11T23:27:48Z")

</div>

HI all Im using the preloader kirupa tutorial, but the problem is: I already have a flash site done, and it is all in the first frame of the timeline (in various layers of course).

So how can I add a preloader using only the first frame, without screwing up my site?

Heres the current stuff:

```auto

bytes_loaded = Math.round(_root.getBytesLoaded());
bytes_total = Math.round(_root.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
_root.loadBar._width = getPercent*100;
_root.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
_root.gotoAndStop(3);
}

```

and gotoAndPlay(1); statement on the second frame to keep the stuff looping and loading.

Im trying to add the loadBar and loadText items with the ActionScript and frames to a movieClip. Then placing the movieClip on a layer of my Main movie (the site) but nothing happens…

help pleeeease?
