Monthly Archives: August 2006

Usability vs User Experience

Last night Betsy Weber, TechSmith’s Chief Evangelist, dragged me to MI UPA meeting which I had mixed feelings about going into–I tend to battle some usability folks who seem averse to aesthetics and are always shoving “Windows standards” down my throat. However, I walked away from the event completely inpired. Up until last night I [...]

Lightweight SWF Header Reader (Java) II

After discovering how to compress / decompress swf files via the Java Deflater / Inflater api, I’ve abandoned the RandomAccessFile method of reading the swf and moved to just using a FileInputStream to create a byte array which can then be examined byte by byte, or, in some cases, bit by bit. The end result [...]

Decompressing A SWF With Java

This example reads a swf file into a byte array and decompresses / inflates all of the bytes of the swf except for the the first 8 bytes which are always uncompressed. As most swf files have zlib compression applied, file decompression is necessary if you wish to fully parse the swf. As with the [...]

Compressing A SWF With Java

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 [...]

Lightweight SWF Header Reader (Java)

One of the cool things about working for TechSmith is I’ve become interested in some of the *lower* level aspects of the Flash platform—namely the swf file format spec. So with the customary confidence of a programmer with a Political Science degree I set off to see if I could parse the swf header to [...]