Name
DojoExternalInterfaceClass (as2)
Description
An implementation of Flash 8's ExternalInterface that works with Flash 6
and which is source-compatible with Flash 8.
Superclass Chain
DojoExternalInterfaceClass
Details
Properties (4)
-
available
-
-
_callbacks
-
-
dojoPath
-
-
_fscommandReady
-
public var _fscommandReady = false;
Methods (8)
-
addCallback()
-
public function addCallback(methodName, instance, method);
-
call()
-
public function call(methodName, resultsCallback);
-
_gatewayReady()
-
public function _gatewayReady();
Called by the flash6_gateway.swf to indicate that it is loaded.
-
__getDojoPath()
-
public function __getDojoPath();
-
_handleJSCall()
-
public function _handleJSCall();
Handles and executes a JavaScript to Flash method call. Used by
initializeFlashRunner.
-
initialize()
-
public function initialize();
-
_initializeFlashRunner()
-
public function _initializeFlashRunner();
When JavaScript wants to communicate with Flash it simply sets
the Flash variable "_execute" to true; this method creates the
internal Movie Clip, called the Flash Runner, that makes this
magic happen.
-
loaded()
-
public function loaded();
Called by Flash to indicate to JavaScript that we are ready to have
our Flash functions called. Calling loaded()
will fire the dojo.flash.loaded() event, so that JavaScript can know that
Flash has finished loading and adding its callbacks, and can begin to
interact with the Flash file.
JavaScript Synopsis
private
DojoExternalInterfaceClass {
prototype public function
addCallback
(
methodName,
instance,
method);
prototype public function
call
(
methodName,
resultsCallback);
prototype public function
loaded
();
}