Function
367
Method summary
Methods inherited from class Object
apply (Function.apply method)
public apply(thisObject:
Object
, [argArray:
Array
])
Specifies the value of
thisObject
to be used within any function that ActionScript calls. This
method also specifies the parameters to be passed to any called function. Because
apply()
is a
method of the Function class, it is also a method of every Function object in ActionScript.
The parameters are specified as an Array object, unlike
Function.call()
, which specifies
parameters as a comma-delimited list. This is often useful when the number of parameters to
be passed is not known until the script actually executes.
Returns the value that the called function specifies as the return value.
Availability:
ActionScript 1.0; Flash Lite 2.0
Parameters
thisObject
:
Object
- The object to which myFunction is applied.
argArray
:
Array
[optional] - An array whose elements are passed to myFunction as
parameters.
Returns
Any value that the called function specifies.
Modifiers
Signature
Description
apply
(thisObject:
Object
,
[argArray:
Array
])
Specifies the value of
thisObject
to be
used within any function that
ActionScript calls.
call
(thisObject:
Object
,
[parameter1:
Object
])
Invokes the function represented by a
Function 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)
Summary of Contents for FLASHLITE2 ACTIONSCRIPT-LANGUAGE
Page 1: ...Flash Lite 2 x ActionScript Language Reference...
Page 22: ...22 Contents...
Page 244: ...244 ActionScript language elements...
Page 760: ...760 ActionScript classes...