EasyManua.ls Logo

MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE - Addcallback (Externalinterface.addcallback Method)

MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
1378 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
ExternalInterface (flash.external.ExternalInterface) 551
Method summary
Methods inherited from class Object
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
addCallBack(), the registered function in Flash Player can be called by JavaScript or
ActiveX code in the container.
Availability: ActionScript 1.0; Flash Player 8
Parameters
methodName:String - The name by which the ActionScript function can be called from
JavaScript. This name does not need to match the actual name of the ActionScript method.
instance:Object - The object to which this resolves in the method. This object is not
necessarily the object on which the method can be found — you can specify any object (or
null).
method:Function - The ActionScript method to be called from JavaScript.
Modifiers Signature Description
static addCallback(methodNa
me:String,
instance:Object,
method:Function) :
Boolean
Registers an ActionScript method as callable from
the container.
static call(methodName:Stri
ng,
[parameter1:Object])
: Object
Calls a function exposed by the Flash Player
container, passing 0 or more arguments.
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)

Table of Contents

Related product manuals