# How can I add a text preloader to this code?

**URL:** https://forum.kirupa.com/t/how-can-i-add-a-text-preloader-to-this-code/221085
**Category:** flash
**Created:** [April 1, 2007, 10:07am UTC](https://forum.kirupa.com/t/how-can-i-add-a-text-preloader-to-this-code/221085 "2007-04-01T10:07:35Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![papalazarou78](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@papalazarou78](https://forum.kirupa.com/u/papalazarou78)
#### Post date: [April 1, 2007, 10:07am UTC](https://forum.kirupa.com/t/how-can-i-add-a-text-preloader-to-this-code/221085/1 "2007-04-01T10:07:35Z")

</div>

Hi

I’ve been working on a site where swf’s are loaded into main movie with transitions between the sections. I have the following code on the mcContainer…

```auto
onClipEvent (enterFrame) {
if (!loaded && this._url != _root._url) {
if (this.getBytesLoaded() == this.getBytesTotal()) {
loaded = true;
_root.transition.gotoAndPlay("opening");
}
}
}

```

How can I add a text percentage preloader into this code?

Any help will be greatly recieved.

Thanks  
Wayne
