User Guide

245
2
CHAPTER 2
ActionScript classes
Documentation for ActionScript classes includes syntax, usage information, and code samples
for methods, properties, and event handlers and listeners that belong to a specific class in
ActionScript (as opposed to global functions or properties). The classes are listed
alphabetically and include new classes in Flash Player 8 that are found in the flash.* packages.
If you are not sure to which class a certain method or property belongs, you can look it up in
the Index.
arguments
Object
|
+-arguments
public class arguments
extends Object
An arguments object is used to store and access a function's arguments. While inside the
function's body it can be accessed with the local
arguments variable.
The arguments are stored as array elements, the first is accessed as
arguments[0], the second
as
arguments[1], etc. The arguments.length property indicates the number of arguments
passed to the function. Note that there may be a different number of arguments passed in
than the function declares.
Availability: ActionScript 1.0; Flash Lite 2.0 - As of Flash Player 6 the arguments object
supports all methods and properties of the Array class.
See also
Function