Method summary
Modifiers
Signature
static
addCallback(methodNa
me:String,
instance:Object,
method:Function) :
Boolean
static
call(methodName:Stri
ng,
[parameter1:Object])
: Object
Methods inherited from class Object
addProperty (Object.addProperty
(Object.hasOwnProperty
(Object.isPropertyEnumerable
method),
registerClass (Object.registerClass
(Object.toString
(Object.valueOf
method),
addCallback (ExternalInterface.addCallback method)
public static addCallback(methodName:String, instance:Object,
method:Function) : Boolean
Registers an ActionScript method as callable from the container. After a successful invocation
of
, the registered function in Flash Player can be called by JavaScript or
addCallBack()
ActiveX code in the container.
Availability: ActionScript 1.0; Flash Player 8
Parameters
methodName:String
JavaScript. This name does not need to match the actual name of the ActionScript method.
- The object to which
instance:Object
necessarily the object on which the method can be found — you can specify any object (or
).
null
- The ActionScript method to be called from JavaScript.
method:Function
Description
Registers an ActionScript method as callable from
the container.
Calls a function exposed by the Flash Player
container, passing 0 or more arguments.
method),
method),
isPropertyEnumerable
method),
method),
unwatch (Object.unwatch
watch (Object.watch method)
- The name by which the ActionScript function can be called from
this
hasOwnProperty
isPrototypeOf (Object.isPrototypeOf
method),
method),
resolves in the method. This object is not
ExternalInterface (flash.external.ExternalInterface)
toString
valueOf
551
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?