コード例 #1
0
 private void Client_InvokeRequest(object sender, InvokeRequestEventArgs e)
 {
     switch (e.Name)
     {
     case "mbox":
         string message = string.Empty;
         for (int i = 0; i < e.Arguments.Length; i++)
         {
             if (i > 0)
             {
                 message += " ";
             }
             message += FlashClient.GetLiteral(e.Arguments[i]);
         }
         MessageBox.Show(message);
         break;
     }
 }
コード例 #2
0
ファイル: FlashClient.cs プロジェクト: relrelb/PenguinClient
        private void AxShockwaveFlash_FlashCall(object sender, AxShockwaveFlashObjects._IShockwaveFlashEvents_FlashCallEvent e)
        {
            InvokeRequestEventArgs request = InvokeRequestEventArgs.Parse(e.request);

            switch (request.Name)
            {
            case "receivePacket":
                string   extension = (string)request.Arguments[0];
                string   command   = (string)request.Arguments[1];
                object[] array     = (object[])request.Arguments[2];
                packet = new Packet(extension, command, array);
                handle.Set();
                break;

            default:
                if (InvokeRequest != null)
                {
                    InvokeRequest(this, request);
                }
                break;
            }
        }