var b:ByteArray = new ByteArray(); b.writeUTFBytes("hello world"); b.compress(); trace(b.length); b.uncompress(); trace(b.length); trace(b.readUTFBytes(b.length));