# Loading progress script

**URL:** <https://forum.kirupa.com/t/loading-progress-script/196323>\
**Category:** Uncategorized\
**Created:** [August 7, 2006, 6:04pm UTC](https://forum.kirupa.com/t/loading-progress-script/196323 "2006-08-07T18:04:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![polol](https://avatars.discourse-cdn.com/v4/letter/p/c89c15/32.png) [@polol](https://forum.kirupa.com/u/polol)\
**Post date:** [August 7, 2006, 6:04pm UTC](https://forum.kirupa.com/t/loading-progress-script/196323/1 "2006-08-07T18:04:40Z")

</div>

**can anyone give me a piece of advice where i should build in a loading progress script for any .swf loading to the “content”** (a script like that

```auto
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.bar._width = getPercent*100;
this.loadText = Math.round(getPercent*100)+"%";

```

)  
\*\* if I use the site structure as in the\*\* **tutorial** :[http://www.kirupa.com/developer/mx/preloader\_transition.htm](http://www.kirupa.com/developer/mx/preloader_transition.htm) ?
