|
Flash Player 9 supports direct use of zlib compression independent
of the browser!!! flash.util.ByteArray.compress flash.util.ByteArray.uncompress You can retrieve a ByteArray from flash.net.URLStream and
flash.net.Socket. These allow you to get a bytearray of data directly from any url
or TCP based socket server. Some useful use patterns: ZLIB XML > HTTP > URLStream >
ByteArray.uncompress > ByteArray.UTFReadBytes ZLIB SWF/GIF/JPG/PNG > HTTP > URLStream >
ByteArray.uncompress > Loader.writeBytes( ByteArray.readBytes ) ZLIB AMF > HTTP > URLStream >
ByteArray.uncompress > ByteArray.readObject ZLIB XML > TCPSocket > Socket >
ByteArray.uncompress > ByteArray.UTFReadBytes ZLIB SWF/GIF/JPG/PNG > TCPSocket > Socket >
ByteArray.uncompress > Loader.writeBytes( ByteArray.readBytes ) ZLIB AMF > TCPSocket > Socket > ByteArray.uncompress
> ByteArray.readObject I explored all these patterns in depth during the
evolution of AS3 AVM2 and Flash Player 9. I have some zlib tools in Python and some examples of
these patterns. I will clean them up and post them to my blog. Cheers, Ted Patrick Flex Evangelist Adobe Systems Incorporated From: Speaking of that – I’ve always wondered, is the gzip
decompression handled by the browser, or by the Flash player? I’ve
assumed it was the browser (HTTP Compression, right?). That being the
case, aren’t there some browsers which don’t have gzip support, or
are they all dead? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
__,_._,___ |
- [flexcoders] Zlib Compression was Backend Choice... Ted Patrick

