The title pretty much says it all–this code sample illustrates how to compress a swf file using the Java Deflater class to perform the zlib compression on all the bytes of the swf except for the first 8 bytes which are always uncompressed. This class isn’t intelligent in the sense that it doesn’t check to see if you actually have a valid swf file signature, or check to see that the file is actually uncompressed. So basically you have swf compression in its rawest form.
hi Brooks,
Where is the SWFCompression class?? that you are extending in this java file, thanks!
aliya
I believe you can find a reference to this file here:
http://www.brooksandrus.com/blog/2006/08/01/lightweight-swf-header-reader-java/
I went to http://www.brooksandrus.com/blog/2006/08/01/lightweight-swf-header-reader-java/ but also could not find SWFCompression class