« The Delete Operator | Main | Core Display Classes Part1 »

The ... Parameter

The ... parameter is introduced in ActionScript 3.0. The parameter have the same functionality as the arguments array and arguments.length property but it does not provide functionality similar to that provided by arguments.callee. Although the ... parameter has the array of the parameters, the specified parameters in a function are no longer included in the array.

function traceArgs(x:int, ... args){}
// args does not have a value of a variable x

Post a comment