/** * Compresses and decompresses text with the LZW algorithm. * @authors Mika Palmu * @version 1.1 * * Original Flash port by: * Ash & Lalek & Shoebox and others. * See: http://www.razorberry.com/blog/archives/2004/08/22/lzw-compression-methods-in-as2/ * See: http://www.lalex.com/blog/comments/200405/164-compression-lzw-actionscript-2.html */ class com.meychi.ascrypt.LZW { /** * Compresses the specified text. */ public static function compress(src:String):String { var chars:Number = 256; var original:String = src; var dict:Array = new Array(); for (var i:Number = 0; i