ryanm wrote:

Imagine compressing XML files to a tiny fraction of their original size and decompressing them within flash!
No need, you can do this now. If you gzip a file and send it via post response (sendAndLoad), the browser will decompress it for you automatically


A possible use case: You need to load themes into your application at runtime. Those themes potentially consist of many assets of different type (xml, bitmap, swf, etc) and people should be able to create those assets using their favourite tools which may or may not include flash.

In order to minimize requests to the server you could offer a way to pack them together accompanied by a catalog xml file (think swc). Again, users should be able to use their favourite zip tool to do that.

As FP9 supports runtime un/compressing of ByteArrays, it is theoretically possible to let it load zip archives and uncompress the contained files at runtime, with minimal processor load.

The problem however is that zip and zlib use different checksum methods, you thus can't uncompress files contained in zip archives created by 3rd party tools. You probably would have to write your own zip-like tool that uses either FP9 or a zlib library to compress files, and use ADLER32 checksums instead of the usual CRC-32 checksums.

Cheers,
Claus.

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to