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

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

问题描述

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



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



结果SWF的最大部分是未使用的字节码。是否有任何工具来优化字节码 - 删除未使用的方法,类,给方法更短的名称等?

我知道一些这样的Java字节码工具。任何有关SWF?

解决方案

大小是Flex API的成本。你不会选择哪个部分被编译进去,所以最好的情况下还是要带上很多的包袱。



如果size是一个很大的担心,你只能使用ActionScript的flash一方,但是你很多很好的预构建Flex组件都没有了。


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

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

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?

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

解决方案

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.

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天全站免登陆