Available (Externalinterface.available Property); Call (Externalinterface.call Method) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

</form>
<script>
function callExternalInterface() {
thisMovie("externalInterfaceExample").goHome();
}
function thisMovie(movieName) {
if (navigator.appName.indexOf("Microsoft") != -1) {
return window[movieName]
}
else {
return document[movieName]
}
}
</script>

available (ExternalInterface.available property)

public static available : Boolean [read-only]
Indicates whether this player is in a container that offers an external interface. If the external
interface is available, this property is
Availability: ActionScript 1.0; Flash Player 8
Example
The following example uses
player is in a container that offers an external interface.
import flash.external.*;
var isAvailable:Boolean = ExternalInterface.available;
trace(isAvailable);

call (ExternalInterface.call method)

public static call(methodName:String, [parameter1:Object]) : Object
Calls a function exposed by the Flash Player container, passing 0 or more arguments. If the
desired function is not available, the call returns
by the function. Recursion is not permitted; a recursive call produces a
If the container is an HTML page, this method invokes a JavaScript function in a
element.
If the container is some other ActiveX container, this method broadcasts an event with the
specified name, and the container processes the event.
; otherwise, it is
true
ExternalInterface.available
null
ExternalInterface (flash.external.ExternalInterface)
.
false
to determine whether the
; otherwise it returns the value provided
null
response.
<script>
553

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF