Name

DojoExternalInterfaceClass (as2)

Synopsis

JavaScript: DojoExternalInterfaceClass
Type: Class
Access: private
Runtimes: as2
Topic: Kernel.AS2
Declared in: WEB-INF/lps/lfc/kernel/swf/dojo/flash6/DojoExternalInterface.as

Description

An implementation of Flash 8's ExternalInterface that works with Flash 6 and which is source-compatible with Flash 8.

Superclass Chain

DojoExternalInterfaceClass

Known Subclasses

Details

Properties (4)

available
public var available;
_callbacks
public var _callbacks;
dojoPath
public var 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 {
  public var available ;
  public var _callbacks ;
  public var dojoPath  = ;
  public var _fscommandReady  = false;
  prototype public function addCallback (methodName, instance, method);
  prototype public function call (methodName, resultsCallback);
  prototype public function _gatewayReady ();
  prototype public function __getDojoPath ();
  prototype public function _handleJSCall ();
  prototype public function initialize ();
  prototype public function _initializeFlashRunner ();
  prototype public function loaded ();
}