ActionScript Rest Parameters
Thursday January 1, 2009 11:20 PM
Word Count: 208
The more and more I write ActionScript the more I really enjoy it. Tonight I was working on an problem where I needed to pass x number of arguments to a function. Lucky for me I found out that ActionScript 3 supports rest parameters. The rest parameter specifies that a function will accept any number of comma delimited arguments. This is a quick class I whipped up to show an example of how you can take advantage of the cool little feature of the language.
