as ファイルを mxmlc と ant でコンパイルしようとしています。
ここに私のコンパイルコードスニペットがあります:
<target name="compile">
<exec executable="${flex.home}/${mxmlc}" failonerror="true">
<arg line="-compiler.include-libraries='./libs'"/>
<arg line="-compiler.optimize=true"/>
<arg line="-debug=false"/>
<arg line="-keep-generated-actionscript=false"/>
<arg line="-default-frame-rate=60"/>
<arg line="-default-size 800 600"/>
<arg line="-source-path='./src'"/>
<arg line="'./src/main.as'"/>
<arg line="-o='./bin/main.swf'"/>
<arg line="-use-network=true"/>
</exec>
</target>
私の問題は、結果のswfが大きすぎることです。./src
に存在するがプロジェクトで使用されていないファイルが含まれます。また、mx.*
その他のパッケージも含まれています。
適切なmxmlc構成は何ですか?