ExternalInterface

Analog to the AS3 flash.external.ExternalInterface class, for communicating with external JavaScript on the page.

Members

(static) available

Whether the external interface is available. In FlaExporter, this is always true.

Methods

(static) addCallback(functionName, callback)

Registers a function to be callable from external JavaScript.

Parameters:
Name Type Description
functionName string

The name of the JavaScript function.

callback function

The function to expose.

(static) call(functionName, …args)

Calls an external JavaScript function.

Parameters:
Name Type Attributes Description
functionName string

The name of the JavaScript function.

args Object <repeatable>

The arguments to the JavaScript function.

Returns:

The result returned from the JavaScript function.