Flex 应用程序何时存储优化 RSL 的摘要?
根据 Adobe 帮助,为了优化 RSL,您需要执行以下操作:
- 通过在 Flash Builder 中编译库项目或使用 compc 命令行工具构建 SWC 文件来创建 RSL。
- 编译您的主应用程序并引用 RSL。
- 从 RSL 的 SWC 文件中提取library.swf 文件(如果您尚未这样做)。
- 针对library.swf 文件运行优化器
- 针对优化的library.swf 文件运行摘要工具
- 将优化库与应用一起部署,以便应用在运行时使用它。
但我不明白应用程序在哪个阶段存储第 5 阶段生成的新摘要?
According to the Adobe help in order to optimize a RSL you need to do the following:
- Create an RSL by compiling a library project in Flash Builder or building a SWC file with the compc command line tool.
- Compile your main application and reference the RSL.
- Extract the library.swf file from your RSL’s SWC file, if you haven’t done so already.
- Run the optimizer against the library.swf file
- Run the digest tool against the optimized library.swf file
- Deploy the optimized library with the application so that the application uses it at run time.
But I don't understand at what stage does the application store the new digest that was generated at stage 5?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要重新编译加载 RSL 的主应用程序,并将 verify-digests 编译器选项设置为 true。然后,从指定应用程序使用的 SWC 文件中读取摘要,并将其写入主编译的应用程序中。
You need to recompile your main app that loads the RSLs with the verify-digests compiler option set to true. This then reads the digests out of the SWC files that are specified to be used by the application and writes them into the main compiled app.