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.
파일 보기 프로젝트 열기: undisputed-seraphim/KanColleAPI 1 사용 예제들

공개 메소드들

메소드 설명
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