当我使用ant构建flex项目时,生成的.SWF文件大小为329 KB。同一项目使用flex builder导出.SWF文件,.SWF文件的大小为108 KB。在flex builder中,我在库路径中使用.SWC库,在框架链接中使用RSL。
以下是我的蚂蚁脚本 -
<!-- Internal project properties -->
<target name="build-flex" depends="init-flex, build_apphealth">
<echo>Build Application Health View flex movies completed</echo>
</target>
<target name="init-flex">
<property environment="env"/>
<property name="FLEX_HOME" value="${env.FLEX_SDK}"/>
<taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}/ant/lib/flexTasks.jar"/>
</target>
<target name="build_apphealth">
<echo>Building Application Health View</echo>
<mxmlc file="${basedir}/src/appha_guest_installer.mxml" keep-generated-actionscript="false"
output="${basedir}/bin-release/appha_guest_installer.swf">
<locale>en_US</locale>
<load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
<source-path path-element="${FLEX_HOME}/frameworks"/>
<source-path path-element="${basedir}/src/locale/{locale}"></source-path>
<compiler.library-path file="${basedir}/../wizard_framework/bin/wizard_framework.swc" append="true"/>
<include-resource-bundles>ErrorMessages</include-resource-bundles>
<include-resource-bundles>Strings</include-resource-bundles>
</mxmlc>
</target>
我觉得在compiler.library-path选项中应该有一些额外的属性。请告诉我可能的解决方案。