访问.swf API
给定一个 .swf 文件,是否有办法检查所提供的 API?
我在播放 .mp3 的网页上有一个 FLASH .swf 文件,我想通过 Google Chrome 扩展程序控制播放,但似乎我找不到有关其 API 的文档。
Given a .swf
file, is there a way to inspect the API provided?
I have a FLASH .swf file on a web-page that plays .mp3 and I'd like to control playback through a Google Chrome extension but it seems I can't find documentation on their API.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用各种 Flash 反编译器之一(例如,这个)来查看 ActionScript 内部代码并查看它是否公开了任何方法。如果播放器使用的是足够新版本的 Flash,您应该查找对 ExternalInterface 因为这是向 JavaScript 等公开内容的主要方式。
You could use one of the various Flash decompilers (for example, this one) to look inside the ActionScript code and see if it exposes any methods. If the player is using a recent enough version of Flash, you should look for references to ExternalInterface because that's the main way to expose things to JavaScript etc.