views:

117

answers:

0

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!