# Percentage preload and transition tutorial

**URL:** <https://forum.kirupa.com/t/percentage-preload-and-transition-tutorial/34521>\
**Category:** Uncategorized\
**Created:** [November 3, 2003, 4:56pm UTC](https://forum.kirupa.com/t/percentage-preload-and-transition-tutorial/34521 "2003-11-03T16:56:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ubik](https://avatars.discourse-cdn.com/v4/letter/u/b38774/32.png) [@Ubik](https://forum.kirupa.com/u/Ubik)\
**Post date:** [November 3, 2003, 4:56pm UTC](https://forum.kirupa.com/t/percentage-preload-and-transition-tutorial/34521/1 "2003-11-03T16:56:12Z")

</div>

Is it possible to apply a preloader with a progress bar and the percentage display on the transition effect instead of just having a animation and “loading”.  
I’m using a modified version a tutorial i found here, here’s the code of the preloader :  
[AS]bytes\_loaded = Math.round(this.getBytesLoaded());  
bytes\_total = Math.round(this.getBytesTotal());  
getPercent = bytes\_loaded/bytes\_total;  
this.loadBar.\_width = getPercent_this.loadBarBorder.\_width;  
this.loadText = Math.round(getPercent_100)+"%";  
this.loadingClip.gotoAndStop(Math.round(getPercent\*19)+1);  
if (getPercent == 1) {  
this.gotoAndStop(3);  
}  
[/AS]

My question is where to put this script and the preloader animation  
Here’s the two files (i’ll put them into file) :

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 3, 2003, 5:46pm UTC](https://forum.kirupa.com/t/percentage-preload-and-transition-tutorial/34521/2 "2003-11-03T17:46:57Z")

</div>

This thread might help you  
[http://www.kirupaforum.com/forums/showthread.php?s=&threadid=29316&highlight=tutorial](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=29316&highlight=tutorial)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 3, 2003, 6:28pm UTC](https://forum.kirupa.com/t/percentage-preload-and-transition-tutorial/34521/3 "2003-11-03T18:28:51Z")

</div>

thanks, i’ve searched the forum but didn’t find anything  
i’ll take a look !

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 3, 2003, 6:53pm UTC](https://forum.kirupa.com/t/percentage-preload-and-transition-tutorial/34521/4 "2003-11-03T18:53:18Z")

</div>

I’ve looked at your files claudio but the problem is that my preloader is made frame by frame, filling a border.  
I also wanted to know if it’s possible to show the progress in %, maybe you could take a look at my files above if you have some time :ne: !  
Thanks !!🙂

Ubik

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 4, 2003, 6:32pm UTC](https://forum.kirupa.com/t/percentage-preload-and-transition-tutorial/34521/5 "2003-11-04T18:32:39Z")

</div>

hello, can someone help me with this :  
I’m trying to apply my preloader to a transition : it’s a a preloader that fills a border with a %, i tryed to apply it on the file of claudio but i don’t know wher to put the code for the % display and my preloader doesn’t work.

Here are 3 files in the zip : the preloader, claudio’s file and my unsucessful attempt to mix the two ☹
