Any way to analyze the size of a SWF built in Flex?

微笑、不失礼 提交于 2019-12-03 08:31:32

The link report actually contains all compiled classes and not just the ones in external libraries (at least with the Flex 4 SDK). There is an xsl available that will generate an html file of the link report so it is easier to read.

Check this post: http://blog.iconara.net/2007/02/25/visualizing-mxmlcs-link-report/

There is a command-line utility called flash.swf.tools.SwfxPrinter in swfkit.jar, which comes with Flex Builder (or the plug-in or the SDK) and which you can use to analyze information about class sizes. Joe Berkovitz wrote some good instructions on how to make use of it in his blog, and he was working on an AIR-based GUI tool that leverages it, but I'm not sure if he ever published the tool. Still, you can use his instructions to leverage the utility directly from the JAR.

I found a handy little AIR app that really helps organize the link report info.

http://www.kahunaburger.com/2008/03/08/air-link-report-visualizer/

It's old but still works very well.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!