Apparat has a great new feature that allows you to create even smaller files. Basic SWF files are compressed using Java’s standard
java.util.zip.Deflater class. This is perfectly fine. And I would even go with no compression at all during development.
However when deploying you can spend some extra time compressing your SWF files with the best tools available. 7-Zip is for instance such a tool and achieves a great compression ratio.
If you have the 7z executable on your
PATH Apparat will make use of it to achieve the best compression for your SWF files. More configuration options are available here.
This feature is currently only implemented for SWF files and not SWCs. However every tool will make use of it by default. So if you are running Reducer and have no graphics in your SWF files you can still get a better compression.
An example is straight from the sources:
reducer -i as3\Apparat.Tests.AS3\bin\Test07.swf [i] Apparat -- http://apparat.googlecode.com/ [i] Launching tool: Reducer [i] Waiting for 7z ... [i] Compression ratio: 18.224573% [i] Total bytes: 310 [i] Completed in 547ms.
Note please that this SWF file does not contain any graphical assets and we got still a ratio of 18%. Our main
audiotool.swf file is compressed by about 10% — about 200kb — and contains no graphical assets either.