Section 25.116. ExternalInterface.call( ): call a JavaScript function from ActionScript


25.116. ExternalInterface.call( ): call a JavaScript function from ActionScript

ActionScript function in Flash 8

25.116.1. Synopsis

 Object ExternalInterface.call(String name,                               Object args...) 

25.116.1.1. Arguments

name

The name of the JavaScript function to invoke.


args...

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

25.116.1.2. Returns

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

25.116.2. 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.




JavaScript. The Definitive Guide
JavaScript: The Definitive Guide
ISBN: 0596101996
EAN: 2147483647
Year: 2004
Pages: 767

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net