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 Player 5 - As of Flash Player 6 the arguments object supports all methods and properties of the Array class.

See also

Function

Property summary

Modifiers

Property

Description

 

callee:Object

A reference to the currently executing function.

 

caller:Object

A reference to the function that called the currently executing function, or null if it wasn't called from another function.

 

length:Number

The number of arguments passed to the function.


Properties inherited from class Object

constructor (Object.constructor property), __proto__ (Object.__proto__ property), prototype (Object.prototype property), __resolve (Object.__resolve property)


Method summary

Methods inherited from class Object

addProperty (Object.addProperty method), hasOwnProperty (Object.hasOwnProperty method), isPropertyEnumerable (Object.isPropertyEnumerable method), isPrototypeOf (Object.isPrototypeOf method), registerClass (Object.registerClass method), toString (Object.toString method), unwatch (Object.unwatch method), valueOf (Object.valueOf method), watch (Object.watch method)


callee (arguments.callee property)

public callee : Object

A reference to the currently executing function.

Availability: ActionScript 1.0; Flash Player 5

See also

caller (arguments.caller property)

caller (arguments.caller property)

public caller : Object

A reference to the function that called the currently executing function, or null if it wasn't called from another function.

Availability: ActionScript 1.0; Flash Player 6

See also

callee (arguments.callee property)

length (arguments.length property)

public length : Number

The number of arguments passed to the function. This may be more or less than the function declares.

Availability: ActionScript 1.0; Flash Player 5



ActionScript 2.0 Language Reference for Macromedia Flash 8
ActionScript 2.0 Language Reference for Macromedia Flash 8
ISBN: 0321384040
EAN: 2147483647
Year: 2004
Pages: 113

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net