> <?xml version="1.0"?>
> <!--
> ======================================================================
> Nov 10, 2005 3:42:29 PM
>
>
>
> description
>
> julian
>
> ======================================================================
> -->
> <project name="Main" >
> <description>
> description
> </description>
> <!-- Declares references to needed directories. -->
> <property name="src.dir" location="../src/"/>
> <property name="build.dir" location="../deploy/"/>
> <!-- Properties for the output movie -->
> <property name="width" value="500"/>
> <property name="height" value="500"/>
> <property name="framerate" value="31"/>
> <property name="bgcolor" value="666666"/>
> <!-- =================================
> target: default
> ================================= -->
> <!-- Define the MTASC ant task -->
> <taskdef name="mtasc" classname="org.as2lib.ant.Mtasc"
> classpath="/Applications/eclipse/plugins"/>
>
> <!-- Target that uses the MTASC Ant Task. -->
> <target name="compile" description="builds sample swf">
> <mtasc srcdir="${src.dir}" classpath="${src.dir}"
> swf="${build.dir}/${ant.project.name}.swf"
> main="true"
> header="${width}:${height}:${framerate}:${bgcolor}"/>
> </target>
>
>
> </project>
It's hard to figure but easy to anderstand.
When using Ant by Eclipse, you don't call ~/.profile
In this file, you get your environment variables.
To fix that, just tell mtasc task where to dig for mtasc…
Mine :
<!-- tool info -->
<property name="mtasc.exe" location="/usr/local/bin/mtasc"/>
<property name="swfmill.exe" location="/usr/local/bin/swfmill"/>
<mtasc src="${source.dir}/net/via/utils/TestSequence.as" keep="true"
swf="${deploy.dir}/testSequence.swf" header="20:20:31" version="8"
classpath="${classpath1}:${source.dir}" mtasc="${mtasc.exe}"/>
Should do the trick.
HTH
-----------
erixtekila
http://blog.v-i-a.net/
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org