0 Replies Latest reply on Apr 28, 2010 7:43 PM by phancuong87

    calling actionScript 2 function from C# help!

    phancuong87

      I want calling actionScript 2.0 function from c# ,  I using ExternalInterface.addCallback;

       

      In flash:

       

      ExternalInterface.addCallback("test", function (text : String) : Void                                                         
      {
            //code  
      });

       

      in C#: I using shockwave flash object

       

      player.CallFunction("<invoke name=\"test\" returntype=\"xml\"><arguments><string>" + "myString" + "</string></arguments></invoke>");

       

      but error: Error HRESULT E_FAIL has been returned from a call to a COM component. in C#

       

      I using cs4 and VS2008, please help me!