Name

ExternalInterface.call( ): call a JavaScript function from ActionScript — ActionScript function in Flash 8

Synopsis

Object ExternalInterface.call(Stringname,
                              Object args...)

Arguments

name

The name of the JavaScript function to invoke.

args...

Zero or more arguments to convert and pass to the JavaScript function.

Returns

The return value of the JavaScript function, converted to an ActionScript value.

Description

This static function is used by ActionScript code in a Flash movie to invoke a JavaScript function defined in the web browser in which the Flash movie is embedded. See ExternalInterface.addCallback( ) for a discussion about the conversion of function arguments and return values between ActionScript and JavaScript.

Get JavaScript: The Definitive Guide, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.