/// <summary> /// Called when Flash Player raises the FlashCallEvent (when an External Interface call /// is made by ActionScript) /// </summary> /// <param name="sender">The object raising the event</param> /// <param name="e">The arguments for the event</param> private void _flashControl_FlashCall(object sender, _IShockwaveFlashEvents_FlashCallEvent e) { ExternalInterfaceCall functionCall = ExternalInterfaceSerializer.DecodeInvoke(e.request); ExternalInterfaceCallEventArgs eventArgs = new ExternalInterfaceCallEventArgs(functionCall); object response = OnExternalInterfaceCall(eventArgs); _flashControl.SetReturnValue(ExternalInterfaceSerializer.EncodeResult(response)); }
/// <summary> /// Called when Flash Player raises the FlashCallEvent (when an External Interface call /// is made by ActionScript) /// </summary> /// <param name="sender">The object raising the event</param> /// <param name="e">The arguments for the event</param> private void _flashControl_FlashCall(object sender, _IShockwaveFlashEvents_FlashCallEvent e) { try { ExternalInterfaceCall functionCall = ExternalInterfaceSerializer.DecodeInvoke(e.request); ExternalInterfaceCallEventArgs eventArgs = new ExternalInterfaceCallEventArgs(functionCall); object response = OnExternalInterfaceCall(eventArgs); _flashControl.SetReturnValue(ExternalInterfaceSerializer.EncodeResult(response)); } catch (Exception ex) { Logger.DEBUG_TRACE("_flashControl_FlashCall Exception:" + ex.Message + "\n"); } }