Missing AS

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 = getPercent100;
this.loadText = "loaded "+Math.round(getPercent
100)+"%";
if (bytes_loaded == bytes_total) {
gotoAndStop(“Scene 2”, 1);
}