About The External Api - MACROMEDIA FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH Manual

Learning actionscript 2.0 in flash
Table of Contents

Advertisement

About the External API

The ExternalInterface class is also called the External API, which is a new subsystem that lets
you easily communicate from ActionScript and the Flash Player container to an HTML page
with JavaScript or to a desktop application that embeds Flash Player.
This functionality replaces the older
page or a container application. The External API offers more robust functionality than
in this situation. For more information, see
fscommand()
on page
667.
The ExternalInterface class is available only under the following circumstances:
In all supported versions of Internet Explorer for Windows (5.0 and later).
In an embedded custom ActiveX container, such as a desktop application embedding the
Flash Player ActiveX control.
In any browser that supports the NPRuntime interface (which currently includes the
following browsers:
Firefox 1.0 and later
Mozilla 1.7.5 and later
Netscape 8.0 and later
Safari 1.3 and later.
In all other situations, the
From ActionScript, you can call a JavaScript function on the HTML page. The External API
offers the following improved functionality compared with
You can use any JavaScript function, not only the functions that you can use with
fscommand function
You can pass any number of arguments, with any names; you aren't limited to passing a
command and arguments.
You can pass various data types (such as Boolean, Number, and String); you are no longer
limited to String parameters.
You can now receive the value of a call, and that value returns immediately to ActionScript
(as the return value of the call you make).
You can call an ActionScript function from JavaScript on an HTML page. For more
information, see
ExternalInterface (flash.external.ExternalInterface)
more information on local file security, see
on page
679.
fscommand()
ExternalInterface.available
.
"About local file security and Flash Player"
function for interoperating with a HTML

"About the External API"

property returns false.
:
fscommand()
About the External API
. For
667

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents