Arguments class

Availability

Flash Player 5; property added in Flash Player 6.

Description

The Arguments class is an array that contains the values that were passed as parameters to any function. Each time a function is called in ActionScript, an Arguments object is automatically created for that function. A local variable, arguments, is also created and lets you refer to the Arguments object.

Property summary for the Arguments class

Property

Description

arguments.callee

Refers to the function being called.

arguments.caller

Refers to the calling function.

arguments.length

The number of parameters passed to a function.