开发者

as3 extract class reference from 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开发者_如何学Python automatically?

Best, Frank


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.


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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜