as3从swc中提取类引用

发布于 2024-10-31 07:55:52 字数 117 浏览 5 评论 0原文

有谁知道如何从 SWC 文件中提取类引用?我知道我可以右键单击/“转到定义”,然后查看类定义。

我需要为 SWC 中的每个类提取这些内容。谁能提供一种自动执行此操作的方法?

最好的, 坦率

Does anyone know how to extract a class reference from an SWC file? I know I can right click / "Go to definition", and view the class definition.

I need to extract these for each class in an SWC. Can anyone provide a method to do so automatically?

Best,
Frank

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

沫雨熙 2024-11-07 07:55:52

我不确定你说的“提取”是什么意思。
如果您需要使用 SWC 中的某些类,只需在 IDE 中将此 SWC 设置为项目的库即可。
如果您谈论的是查看源代码,那几乎是不可能的,因为 SWC 是一个包含已编译类 (swf) 的存档。您可以使用 flash 反编译器从中获取一些源代码。
顺便说一句,IntelliJ IDEA 可以解析 swc 并显示字段和方法的原型。

I'm not sure, what do you mean saying "extract".
If you need to use some class from SWC, just set this SWC as a library for your project in your IDE.
If you are talking about viewing source code, that's almost impossible, because SWC is an archive with compiled classes (swf). You may use flash decompilers to get some source code from it.
BTW, IntelliJ IDEA can parse swc and show you fields and methods' ptototypes.

手长情犹 2024-11-07 07:55:52

如果您尝试从 Flex SDK 本身提取类,您可以抓取使用 SVN 浏览整个项目或在线浏览他们的类摘要文档

If you're trying to extract classes from the Flex SDK itself, you can grab the entire project using SVN or browse their online class summary documentation.

风铃鹿 2024-11-07 07:55:52

打包到 SWC 中的类列表可从 swc 中的 catalog.xml 文件获取。

将 .swc 重命名为 .zip 文件,您就可以访问它了。

但是,如果您想要每个类中的实际方法,恐怕您就不走运了。

A list of the classes packaged into the swc is available from the catalog.xml file in the swc.

Rename the .swc to a .zip file, and you can access it.

However, if you want the actual methods in each class, I'm afraid you're out of luck.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文