/ Published in: ActionScript 3
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var total:Number = event.target.bytesTotal; var part:Number = event.target.bytesLoaded; var percentage:Number = part / total; var percentageFormatted:String = Math.floor(percentage * 100)+"%"; trace("percentageFormatted: "+percentageFormatted);