flash.external
Class ExternalInterface

java.lang.Object
  extended by flash.external.ExternalInterface

public final class ExternalInterface
extends Object

See Also:
ActionScript 2.0 Language Reference

Method Summary
static boolean addCallback(String methodName, CallbackListener listener)
          Register callback for invocations from the container.
static com.google.gwt.core.client.JavaScriptObject call(String methodName, com.google.gwt.core.client.JavaScriptObject... params)
          Invoke a function in the container.
static boolean isAvailable()
          Determine if the external interface is available.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isAvailable

public static boolean isAvailable()
Determine if the external interface is available.


addCallback

public static boolean addCallback(String methodName,
                                  CallbackListener listener)
Register callback for invocations from the container.

Parameters:
methodName - name of the method that will be called by the container
listener - instance that will receive container invocations

call

public static com.google.gwt.core.client.JavaScriptObject call(String methodName,
                                                               com.google.gwt.core.client.JavaScriptObject... params)
Invoke a function in the container. At most three parameters are supported.

Parameters:
methodName - name of the method to invoke
params - zero or more arrays each containing a method parameter as the first element in the array
Returns:
an array containing the returned value as its first element


Copyright © 2011. All Rights Reserved.