C# Class KanColle.Flash.External.ExternalInterfaceProxy

Facilitates External Interface communication between a .NET application and a Shockwave Flash ActiveX control by providing an abstraction layer over the XML-serialized data format used by Flash Player for ExternalInterface communication. This class provides the Call method for calling ActionScript functions and raises the ExternalInterfaceCall event when calls come from ActionScript.
Show file Open project: undisputed-seraphim/KanColleAPI Class Usage Examples

Public Methods

Method Description
Call ( string functionName ) : object

Calls the ActionScript function which is registered as a callback method with the ActionScript ExternalInterface class.

ExternalInterfaceProxy ( AxShockwaveFlashObjects.AxShockwaveFlash flashControl ) : System.Runtime.InteropServices

Creates a new ExternalInterfaceProxy for the specified Shockwave Flash ActiveX control.

Protected Methods

Method Description
OnExternalInterfaceCall ( ExternalInterfaceCallEventArgs e ) : object

Raises the ExternalInterfaceCall event, indicating that a call has come from Flash Player.

Private Methods

Method Description
_flashControl_FlashCall ( object sender, AxShockwaveFlashObjects._IShockwaveFlashEvents_FlashCallEvent e ) : void

Called when Flash Player raises the FlashCallEvent (when an External Interface call is made by ActionScript)

Method Details

Call() public method

Calls the ActionScript function which is registered as a callback method with the ActionScript ExternalInterface class.
Thrown when there is an error /// calling the method on Flash Player. For instance, this exception is raised if the /// specified function name is not registered as a callable function with the ExternalInterface /// class; it is also raised if the ActionScript method throws an Error.
public Call ( string functionName ) : object
functionName string The function name registered with the ExternalInterface class /// corresponding to the ActionScript function that is to be called
return object

ExternalInterfaceProxy() public method

Creates a new ExternalInterfaceProxy for the specified Shockwave Flash ActiveX control.
public ExternalInterfaceProxy ( AxShockwaveFlashObjects.AxShockwaveFlash flashControl ) : System.Runtime.InteropServices
flashControl AxShockwaveFlashObjects.AxShockwaveFlash The Shockwave Flash ActiveX control with whom communication /// is managed by this proxy.
return System.Runtime.InteropServices

OnExternalInterfaceCall() protected method

Raises the ExternalInterfaceCall event, indicating that a call has come from Flash Player.
protected OnExternalInterfaceCall ( ExternalInterfaceCallEventArgs e ) : object
e ExternalInterfaceCallEventArgs The event arguments related to the event being raised.
return object