/// <summary> /// Handles calls made from Fade targeted to this client. /// </summary> /// <param name="eventArgs">Event arguments that contain information about call.</param> /// <returns></returns> public object HandleCall(ExternalInterfaceCallEventArgs eventArgs) { if (eventArgs.FunctionCall.FunctionName.Equals("stageOneInitialized")) { if ((bool)eventArgs.FunctionCall.Arguments[1] == true) { StageOneLoaded?.Invoke(this, EventArgs.Empty); } else { StageOneFailed?.Invoke(this, EventArgs.Empty); } } return(null); }
private object ExternalInterfaceHandler(object sender, ExternalInterfaceCallEventArgs e) { InvokeFromActionScript(e.FunctionCall.FunctionName, e.FunctionCall.Arguments); return(false); }