# Missing AS

**URL:** <https://forum.kirupa.com/t/missing-as/152335>\
**Category:** Uncategorized\
**Created:** [June 24, 2005, 2:39am UTC](https://forum.kirupa.com/t/missing-as/152335 "2005-06-24T02:39:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dr\_vroeg](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@dr\_vroeg](https://forum.kirupa.com/u/dr_vroeg)\
**Post date:** [June 24, 2005, 2:39am UTC](https://forum.kirupa.com/t/missing-as/152335/1 "2005-06-24T02:39:42Z")

</div>

okay…I have read the percentage load tuts but nothing really helps my with this. I have a radial loader, like a pie chart. As the bytes are being loaded the pie gets larger and the percentage is noted below. The only thing is that I am missing some AS that calculates the “pie” based on one hundred frames…please help!

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