Apply (Function.apply Method) - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

Method summary
Modifiers
Signature
apply(thisObject:Object,
[argArray:Array])
call(thisObject:Object,
[parameter1:Object])
Methods inherited from class Object
addProperty (Object.addProperty
(Object.hasOwnProperty
(Object.isPropertyEnumerable
method),
registerClass (Object.registerClass
(Object.toString
(Object.valueOf
method),

apply (Function.apply method)

public apply(thisObject:Object, [argArray:Array])
Specifies the value of
method also specifies the parameters to be passed to any called function. Because
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
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
[optional] - An array whose elements are passed to myFunction as
argArray:Array
parameters.
Returns
Any value that the called function specifies.
method),
method),
isPropertyEnumerable
method),
method),
unwatch (Object.unwatch
watch (Object.watch method)
to be used within any function that ActionScript calls. This
thisObject
- The object to which myFunction is applied.
Description
Specifies the value of thisObject to be
used within any function that
ActionScript calls.
Invokes the function represented by a
Function object.
hasOwnProperty
isPrototypeOf (Object.isPrototypeOf
method),
toString
method),
Function.call()
valueOf
is a
apply()
, which specifies
Function
367

Advertisement

Table of Contents
loading

Table of Contents