> After getting some feature requests and bug reports from Eric
> (http://blog.v-i-a.net) I decided that it was about time for a new
> release: As2ant 1.5.
>
I've added a note on my blog too.
For those who don't read french, here is a short traduction :
Simon has added a new <xml> tag in the swf task.
This one is pretty interesting as it permits you to customise your swf
structure for compiling with swfmill directly from Ant.
Before, only a short list of the swfmill-s tags was available through
as2ant.
Now, you can even place textfield on Stage.
Moreover, one aspect that Simon doesn't tell is the possibility to use
ant properties directly in the <xml>.
Follow the guide :
<swf
classpath="${classpath1}:${source.dir}"
src="${source.dir}/net/via/utils/ApplicationLoader.as"
version="8"
keep="true"
main="true"
strict="true"
infer="true"
trace="${trace.class}"
swf="${deploy.dir}/shell.swf"
dest="${deploy.dir}/shell.swf"
width="800"
height="600"
framerate="31"
bgcolor="FFFFFF"
verbose="false"
mtasc="${mtasc.exe}"
swfmill="${swfmill.exe}">
<xml>
<![CDATA[
<movie width="800" height="600" framerate="31" version="8">
<background color='#FFFFFF'/>
<!-- Pour l'import des classes de prechargement -->
<!-- Doit avoir lieu avant l'enregistrement de la
classe -->
<frame name="load">
<library>
<!-- Les clips necessaires aux tests et
prechargement -->
<clip id="progressBarUI"
import="${deploy.dir}/lib/progressBar.swf"/>
<clip id="alerteUI"
import="${deploy.dir}/lib/alerte.swf"/>
<font id="DejaVu"
import="/Library/Fonts/DejaVuSans-Bold.ttf"
glyphs="version.0123456789 "/>
</library>
<textfield id="version" width="100" height="20"
size="8"
font="DejaVu" text="version ${version_application}"/>
<place id="version" name="version" x="750"
y="580" depth="1"/>
<stop/>
</frame>
</movie>
]]>
</xml>
</swf>
In this example, you could see that I embed the swf version in a
textfield on Stage.
The textfield text reflect the version of the build contained in an ant
property.
Great work from Simon.
HTH
Cheers.
-----------
erixtekila
http://blog.v-i-a.net/
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org