Building Flex Project with RSLs and ANT

假如想象 提交于 2020-01-16 11:12:30

问题


Can someone give me a code example of how to build a flex project with ANT using framework RSL's?

This is what im currently using but the file SWF generated is way to big;

    <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>

Thanks


回答1:


This is a great description: http://soenkerohde.com/2008/04/using-the-flash-player-cache-for-the-flex-framework/



来源:https://stackoverflow.com/questions/730715/building-flex-project-with-rsls-and-ant

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!