Name
ExternalInterface: a bidirectional interface to Flash — ActionScript Object in Flash 8
Static Properties
-
available Indicates whether Flash may communicate with JavaScript. This will be
falseif the security policy for the browser prevents communication.
Static Functions
-
addCallback( ) Exports an ActionScript method so it can be invoked from JavaScript.
-
call( ) Invokes a JavaScript function from ActionScript.
Description
ExternalInterface is an ActionScript object defined by the Adobe Flash plug-in in version 8 and later. It defines two static functions for use by ActionScript code in Flash movies. These functions enable communication between JavaScript code in a web browser and ActionScript code in a Flash movie.
See Also
FlashPlayer; Chapter 23
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access