chswf if a java tool for making changes to a swf file
it only has one use at the moment, to add or remove the tag needed to enable advanced telemetry in the swf so that you can access detailed profiling information in Monocle.
- read/write swf files
- support compressed swf files (read and write)
- add/remove tags
you can run it on the command-line or inside ant as follows
add telemetry
java -jar chswf-1.0.jar -telemetry=true path_to_swf_file
dump tags
java -jar chswf-1.0.jar -verbose path_to_swf_file
important you need to include the chswf jar in the ANT classpath. you can put it in "ANTHOME/lib" or provide a "-lib path_to_chsswf_jar" parameter on the command line.
creating a macro you can share across projects is a good idea
<macrodef name="chswf">
<attribute name="file"/>
<attribute name="telemetry" default="true"/>
<attribute name="verbose" default="false"/>
<sequential>
<java classname="swf.ChangeSwf" fork="true" failonerror="true">
<arg value="-telemetry=@{telemetry}"/>
<arg value="-verbose=@{verbose}"/>
<arg value="@{file}"/>
</java>
</sequential>
</macrodef>
<chswf telemetry="true" file="path_to_swf_file"/>
Code for adding telemetry tag is based on telemetry-utils by Adam Cath.