21 Mai 10
Be first!
Quick start with Flash ExternalInterface class
The ExternalInterface class allows you to communicate with the Flash wrapping container, which is usually the HTML page with JavaScript capeability. It allows you to send data from ActionsScript to JavaScript and vice versa.
The ExternalInterface class is implemented for nearly all current browsers. Please see the documentation for a detailed list of the supported browsers here.
All five attributes and methods are static, so you don’t need an instance of this class.
Make sure ExternalInterface is available
When using the ExternalInterface you should make sure it’s available. So please test the boolean value ExternalInterface.available:
if( ExternalInterface.available ){ ExternalInterface.call( .... ) }