Skip to content

petermd/chswf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chswf - simple swf modification

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.

features

  • read/write swf files
  • support compressed swf files (read and write)
  • add/remove tags

usage

you can run it on the command-line or inside ant as follows

command-line

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

ANT

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.

define macro

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>

use macro to add telemetry to swf

 <chswf telemetry="true" file="path_to_swf_file"/>

acknowledgements

Code for adding telemetry tag is based on telemetry-utils by Adam Cath.

About

simple swf file modification

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published