/ Published in: ActionScript 3
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// returns the total of all numbers in array as 1 number private function arrayTotal(input:Array):Number { var total:Number = 0; for(var i:Number = 0; i < input.length; i++) { total += Number(input[i]); } return total; }