Name
Arguments Object — access to function parameters and the current function
Availability
Flash 5
Synopsis
arguments[elem] arguments.propertyName
Properties
- callee
A reference to the function being executed.
- length
The number of parameters passed to the function being executed.
Description
The Arguments
object is stored in the local
arguments
variable of every function and is
accessible only while a function is executing.
Arguments
is both an array and an object. As an
array, arguments
stores the values of the
parameters passed to the currently executing function. For example,
arguments[0]
is the first passed parameter,
arguments[1]
is the second passed parameter, and
so on. As an object, Arguments
stores the
callee
property, which can be used to identify or
invoke the current function.
See Also
“The arguments Object” in Chapter 9
Get ActionScript: The Definitive Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.