C# Класс 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.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
OnExternalInterfaceCall ( ExternalInterfaceCallEventArgs e ) : object

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

Приватные методы

Метод Описание
_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)

Описание методов

Call() публичный Метод

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
Результат object

ExternalInterfaceProxy() публичный Метод

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.
Результат System.Runtime.InteropServices

OnExternalInterfaceCall() защищенный Метод

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.
Результат object