ActionScript 2.0 Language Reference |
|
|
|
| ActionScript classes > ExternalInterface (flash.external.ExternalInterface) > 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 true; otherwise, it is false.
Availability: ActionScript 1.0; Flash Player 8
The following example uses ExternalInterface.available to determine whether the player is in a container that offers an external interface.
import flash.external.*; var isAvailable:Boolean = ExternalInterface.available; trace(isAvailable);
|
|
|
|