0

有人可以给我一个代码示例,说明如何使用框架 RSL 使用 ANT 构建 flex 项目吗?

这是我目前使用的,但生成的 SWF 文件太大了;

    <target name="main">
        <mxmlc 
            file="${SRC_DIR}/myApp.mxml" 
            output="${DEPLOY_DIR}/myApp.swf"
            actionscript-file-encoding="UTF-8"
            keep-generated-actionscript="true"
            incremental="true">
            <!-- Get default compiler options. -->
            <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>

            <!-- List of path elements that form the roots of ActionScript
            class hierarchies. -->
            <source-path path-element="${FLEX_HOME}/frameworks"/>

            <!-- List of SWC files or directories that contain SWC files. -->
            <compiler.library-path dir="${FLEX_HOME}/frameworks" append="true">
                <include name="libs" />
                <include name="../bundles/{locale}" />
            </compiler.library-path>
        </mxmlc>
</target>

谢谢

4

1 回答 1

3

这是一个很好的描述:http ://soenkerohde.com/2008/04/using-the-flash-player-cache-for-the-flex-framework/

于 2009-04-26T11:01:49.847 回答