/ Published in: ActionScript 3
URL: http://flexman.info/2008/12/18/example-shows-how-to-use-variable-parameters-in-flex/
Expand |
Embed | Plain Text
private function sum(... nums):Number { var total:Number = 0; for(var i:int = 0; i < nums.length;i++){ total += nums[i]; } return total; }
You need to login to post a comment.
