Ejemplo n.º 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;
     }
 }
Ejemplo n.º 2
0
        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;
            }
        }