# Preloader

**URL:** <https://forum.kirupa.com/t/preloader/195997>\
**Category:** Uncategorized\
**Created:** [August 4, 2006, 1:55pm UTC](https://forum.kirupa.com/t/preloader/195997 "2006-08-04T13:55:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![amyanet1](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@amyanet1](https://forum.kirupa.com/u/amyanet1)\
**Post date:** [August 4, 2006, 1:55pm UTC](https://forum.kirupa.com/t/preloader/195997/1 "2006-08-04T13:55:33Z")

</div>

Hello Friends,

I have use percentage loader script with Horizontal progressbar clip.  
Which shows the % with progressbar here is the code.

bytes\_loaded = Math.round(\_root.getBytesLoaded());  
bytes\_total = Math.round(\_root.getBytesTotal());  
getPercent = bytes\_loaded/bytes\_total;  
this.loadBar.\_width = getPercent_100;  
this.loadText = Math.round(getPercent_100)+"%";  
if (bytes\_loaded == bytes\_total) {  
this.gotoAndPlay(“Scene 1”, 1);  
}

Now i change the movie for loader like circle type MC and want to complete 100 % when my Circle Movie completes it’s rotation say frm 0 to 360 degree.

How shuold I implement above code.

Amyanet1
