2005/08/18 | ECLIPSE+ADST+ANT
类别(AS3) | 评论(3) | 阅读(807) | 发表于 20:44
正常是Flashout来编译输出,虽然对于初学者非常好用,但是对于复杂的工程远不如ANT,下面重点介绍一下build.xml
<project default="compile" basedir=".">
    <property name="mtasc" location="j:/java/mtasc/mtasc.exe"/>
    <property name="deploy" location="."/>
    <property name="targetswf" value="demo1.swf"/>
    <property name="outswf" value="out.swf"/>
    <property name="flashplayer" value="c:/Program Files/Macromedia/Flash 8/Players/SAFlashPlayer.exe"/>
    <target name="compile">        
        <exec executable="${mtasc}" failonerror="true">
            <arg value="-cp"/>
            <arg value="j:/work/java/aslib/src/"/>
            <arg value="-main"/>
            <arg value="j:/work/java/aslib/src/app/fmusic/Recorder.as"/>
            <arg value="-swf"/>
            <arg value="${deploy}/${targetswf}"/>
            <arg value="-out"/>
            <arg value="${deploy}/${outswf}"/>
        </exec>        
        <exec executable="${flashplayer}" spawn="true">
            <arg value="${deploy}/${outswf}"/>
        </exec>
    </target>
</project>
仅供使用FAME的开发者参考,编译完后会使用FLASHPLAYER播放器打开,里面的参数请自行修改!
0

评论Comments

日志分类
首页[33]
AS3[20]
工作日记[10]
个人简介[2]
ASV[1]