In the line:
percentageTotal = kbTotal/2097152*100
try changing this to multiply by "100.00". I've found with
Numbers in ActionScript that math is effected by the format of the
numbers you are using - decimals are sometimes lost. So try this:
percentageTotal = kbTotal/2097152*100.00