Posted By

scottwatkins on 03/23/11


Tagged


Versions (?)

Use Variable Parameters In Flex


 / Published in: ActionScript 3
 

URL: http://flexman.info/2008/12/18/example-shows-how-to-use-variable-parameters-in-flex/

  1. private function sum(... nums):Number {
  2. var total:Number = 0;
  3.  
  4. for(var i:int = 0; i < nums.length;i++){
  5. total += nums[i];
  6. }
  7.  
  8. return total;
  9. }

Report this snippet  

You need to login to post a comment.