as3从swc中提取类引用
有谁知道如何从 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我不确定你说的“提取”是什么意思。
如果您需要使用 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.
如果您尝试从 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.
打包到 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.