I recently stumbled across Flash Extensions which specializes in Flash Training & Solutions. There I found a few video tutorials and thats where this comes from
Here’s how you can pass unlimited arguments to a function.
Flex Developers from the C++ and Java worlds might be familiar with this. Yet, this could be new stuff for some. The most common method used to pass multiple arguments to a function where the number of arguments are not predefined is to pass the arguments as a complex object like Array or something.
private function normalUsage(list:Array):void{
Alert.show(list.join(":"));
}
The other better way to handle this is something like this. Use “…args” in the function and then you can pass any number of arguments. -
private function dataToPop():void{
newUsage(1,2,3,5,6,7,8,9,10);
}
private function newUsage(...args):void{
Alert.show(args.join(":"));
}
Try it out. This could be useful at many places.



thanks for the info im is very use full to my study