# Transition pre-loader causes?

**URL:** <https://forum.kirupa.com/t/transition-pre-loader-causes/196849>\
**Category:** Uncategorized\
**Created:** [August 11, 2006, 12:06pm UTC](https://forum.kirupa.com/t/transition-pre-loader-causes/196849 "2006-08-11T12:06:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joifan2k](https://avatars.discourse-cdn.com/v4/letter/j/a9adbd/32.png) [@joifan2k](https://forum.kirupa.com/u/joifan2k)\
**Post date:** [August 11, 2006, 12:06pm UTC](https://forum.kirupa.com/t/transition-pre-loader-causes/196849/1 "2006-08-11T12:06:00Z")

</div>

I’ve successfully added transitions to my site, now i want to add pre-loaders to it.  
I copied this code:

> midframe=39;  
> bytes\_loaded = Math.round(this.getBytesLoaded());  
> bytes\_total = Math.round(this.getBytesTotal());  
> getPercent = bytes\_loaded/bytes\_total;  
> this.loadBar.\_width = getPercent_100;  
> this.loadText = Math.round(getPercent_100)+“%”;  
> if (bytes\_loaded == bytes\_total) {

this.gotoAndPlay(3);

}

when the file loads I get this message : “A script in this movie is causing it to run slowly…” What am I doing wrong?
