简体   繁体   English

从C#调用Flash函数,反之亦然

[英]Calling Flash functions from C# and vice versa

What's the proper way to communicate with Flash from C# when it's hosted in the ActiveX control? 在ActiveX控件中托管Flash时,通过C#与Flash通信的正确方法是什么? I see a CallFunction method which look promising to communicate with Flash but I'm having a hard time finding documentation about what the parameter data should look like. 我看到了一个CallFunction方法,该方法看起来有望与Flash进行通信,但是我很难找到有关参数数据应如何显示的文档。 Also, what would the reverse look like; 同样,相反的样子是什么? ie how could the Flash content notify C# of some kind of event? 即Flash内容如何将某种事件通知C#?

You'll want to use SetVariable and CallFunction to achieve this. 您将要使用SetVariable和CallFunction实现此目的。 Here is a good, short tutorial on Flash and C# interop . 这是有关Flash和C#interop的简短好教程

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM