/ Published in: ActionScript 3
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
private function sum(... nums):Number { var total:Number = 0; for(var i:int = 0; i < nums.length;i++){ total += nums[i]; } return total; }
URL: http://flexman.info/2008/12/18/example-shows-how-to-use-variable-parameters-in-flex/