Quick Tip: Compression in Flash

While working on one of my projects where I needed compression for transfered data, I hit some very interesting compression libraries. Also the ByteArray class contains compress method, using zlib algorithm in flash player or multiple algorithms in AIR. At the end I decided to use ByteArray.compress() method for encoding vs. PHP gzuncompress for decoding, what works correctly, fast and smooth.

Here is a list of 3rd party compression libraries and other good stuff:

  • AS3 Zip: ActionScript 3 based library for reading and writing zip files
  • FZip: FZip is an Actionscript 3 class library to load, modify and create standard ZIP archives.
  • ASZip: ActionScript 3 library to generate ZIP files
  • LZMA Encoder: AS3 class to compress data using LZMA algorithm.
  • LZMA Decoder: A part of the apparat framework.
  • GZIP: ActionScript GZIP compression library
  • Gzip for HTTPService/URLLoader: Adding Gzip support for Flex/AIR HTTPService/URLLoader
  • airxzip: Zip library for ActionScript3 on AIR

If you know some more, please let me know.

6 comments so far

  1. focus January 8, 2011 00:58
  2. Jozef Chúťka January 10, 2011 14:35

    @focus, thnx, updated

  3. Tyler Larson February 4, 2011 18:41

    Aparate’s encoder is not and ActionScript library only the decoder is. :(
    I would hope that the fast math that Joa has going would make an encoder faster than ByteArray.compress but who knows. I wish Adobe had a few more options for this type of stuff.

  4. airxzip February 17, 2011 17:20

    Zip/Unzip library for AIR

  5. Jozef Chúťka February 17, 2011 23:25

    thnx airxzip, updated

  6. […] 翻译自:http://blog.yoz.sk/2011/01/quick-tip-compression-in-flash/ […]

Leave a comment

Please be polite and on topic. Your e-mail will never be published.