 			err = stream.inflateInit();
 			checkError(stream, err, "inflateInit");
 
-			var outcount:int = 0;
 			while (true)
 			{
 				// force small buffers
 				stream.avail_in = 1;
 				stream.avail_out = 1;
 				
+				//err = stream.inflate(JZlib.Z_SYNC_FLUSH);
 				err = stream.inflate(JZlib.Z_NO_FLUSH);
 				switch (err)
 				{

			}
			return true;
		}
	}
}

			stream.next_in = data;
			stream.next_in_index = 0;
			
			stream.next_out = chunk;
			stream.next_out_index = 0;
			
			stream.avail_out = outBytesLength;
