calling actionScript 2 function from C# help!

Posted by phancuong87 on Stack Overflow See other posts from Stack Overflow or by phancuong87
Published on 2010-04-29T02:57:35Z Indexed on 2010/04/29 3:07 UTC
Read the original article Hit count: 391

Filed under:
|
|

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("" + "myString" + "");

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!

© Stack Overflow or respective owner

Related posts about flash

Related posts about actionscript-2