Flash 应用程序依赖于 Flex.是否有任何 SWF 字节码大小优化器? [英] Flash app depends on Flex. Are there any SWF bytecode size optimizers?

查看:23
本文介绍了Flash 应用程序依赖于 Flex.是否有任何 SWF 字节码大小优化器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 Flex 的 Hello world 应用程序,使用 optimize=true 编译,大小为 178K.如何减小应用程序大小?

Hello world application that uses Flex, compiled with optimize=true has size 178K. How to reduce application size?

我们不喜欢使用 RSL,我们不喜欢避免使用 Flex.

We do not like to use RSL, we don't like to avoid Flex.

生成的 SWF 的大部分是未使用的字节码.是否有任何工具可以优化字节码——删除未使用的方法、类、给方法更短的名称等等?

Largest part of resulting SWF is unused bytecode. Are there any tools to optimize bytecode — drop unused methods, classes, give methods shorter names and so on?

我知道一些用于 Java 字节码的此类工具.有没有 SWF 文件?

I know some such tools for Java bytecode. Any there any for SWF?

推荐答案

大小是 Flex API 的成本.您无法挑选编译的部分,所以最好的情况是仍然会携带很多包袱.

The size is the cost of the Flex API. You don't get to pick and choose which parts are compiled in, so the best case is going to still carry a lot of baggage.

如果大小是一个大问题,您可以只使用 ActionScript 的 flash 部分,但您会失去许多漂亮的预构建 Flex 组件.

If size is a big worry, you can get away with using only the flash side of ActionScript, but you lose out on a lot of the nice prebuilt Flex components.

这篇关于Flash 应用程序依赖于 Flex.是否有任何 SWF 字节码大小优化器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆