简体   繁体   English

C#Flash - ExternalInterface

[英]C# Flash - ExternalInterface

We are hosting the ActiveX control in a WinForms application to embed flash. 我们在WinForms应用程序中托管ActiveX控件以嵌入闪存。

Is there a good way to get the list of visible ExternalInterface functions that are available for any given swf file? 有没有一种很好的方法来获取可用于任何给定swf文件的可见ExternalInterface函数列表?

We are working with a 3rd party swf file, and do not have access to source. 我们正在使用第三方swf文件,并且无权访问源。

If it's not possible from C# (or code), is there a tool out there that can do it? 如果C#(或代码)不可能,那么有没有可以做到的工具?

ANSWER: The only way I've found is to use a flash decompiler and then look for the line: 答案:我发现的唯一方法是使用Flash反编译器,然后查找该行:

ExternalInterface.addCallback("methodName", methodName);

I'm marking the top answer as the answer for the help. 我将最佳答案标记为帮助的答案。

据我所知,Flash不会将其外部接口“API”暴露给环境。

在Flash ActiveX对象上使用事件FLASH_CALL并解码XML,例如: 此示例

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

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