Swf Util

swf util is a lightweight tool to read swf header??compress/decompress swf for Ruby.

Author

Dennis Zane<[email protected]>

Requirements

Ruby>=1.8.0 on linux or jruby
bit-struct>=0.11 (homepage:http://redshift.sourceforge.net/bit-struct/)

Install

At first,please install bit-struct(download it from:http://redshift.sourceforge.net/bit-struct/)
then, gem install SwfUtil-0.01.gem

Example

Example: #read swf head require 'swf_util' header=SwfUtil::read_header("test.swf") puts header.inspect header.version header.frame_rate ......

#decompress swf SwfUtil::decompress_swf("test.swf")

#compress swf SwfUtil::compress_swf("test.swf")