Apply (Function.apply Method) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

Property summary
Properties inherited from class Object
constructor (Object.constructor
property),
prototype (Object.prototype
(Object.__resolve property)
Method summary
Modifiers
Signature
apply(thisObject:Obj
ect,
[argArray:Array]) :
Void
call(thisObject:Obje
ct,
[parameter1:Object])
: 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]) : Void
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 Player 6
property),
Description
Specifies the value of thisObject to be used within
any function that ActionScript calls.
Invokes the function represented by a Function
object.
method),
method),
isPropertyEnumerable
method),
method),
unwatch (Object.unwatch
watch (Object.watch method)
to be used within any function that ActionScript calls. This
thisObject
__proto__ (Object.__proto__
property),
__resolve
hasOwnProperty
isPrototypeOf (Object.isPrototypeOf
method),
toString
method),
Function.call()
valueOf
is a
apply()
, which specifies
Function
595

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF