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
false
if 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
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.