Tom,

 

if ( Browser supports GZIP compression && HTTP Server supports GZIP compression )

{

     Flash Player will receive decompressed HTTP data using any HTTP based service!

}

 

This applies to all HTTP/HTTPS based data transfer. Basically the browser has the capability to decode GZIP before data is presented to the player.


URLStream and Socket class support zlib compression independent of the browser or network protocol in use. You can load data directly from FTP, SVN that is zlib compressed and decompress in the Flash Player. You can also compress data in the Flash Player and upload it to a server. Using zlib compression is wide open in Flash Player.

 

Also most do not realize that AMF serialization and deserialization are also added directly into ByteArray. You can read and write AMF this easily.

 

import flash.utils.ByteArray;

                                     

//writing to ByteArray

var byteObj:ByteArray = new ByteArray();

byteObj.writeObject( new Array( "Hello", 2, 3, 4, 5 ) );

trace( byteObj.length )

byteObj.writeObject( "Hello Write Byte World" );

                                     

// reading ByteArray          

byteObj.position = 0

trace( byteObj.readObject() );

trace( byteObj.readObject() );

 

It’s a brand new world folks! Have fun with direct AMF data access within Flash Player 9!!!! Network transfer of AMF data is orthogonal to de/serialization in Flash Player 9. That is a major league change. Take a deeper look at ByteArray there is a ton of real value in this class.

 

It is Mega-Mega-Useful!!!!

 

Cheers,

Ted Patrick

Flex Evangelist

Adobe Systems Incorporated


From: [email protected] [mailto:[email protected]] On Behalf Of Tom Lee
Sent: Monday, August 28, 2006 8:39 AM
To: [email protected]
Subject: RE: [flexcoders] Zlib Compression was Backend Choice...

 

Very useful –

 

So, for clarification, under what circumstances will the browser handle decompression of HTTP Compressed data, and when is it necessary to use ByteArray.compress/uncompress?  I’m under the impression that the Flash Player handles communication for the URLStream and Socket class and the browser handles other communications.  Therefore, I would assume that the ByteArray methods would only be needed for URLStream and Socket… Right?

__._,_.___

--
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
Software development tool Software development Software development services
Home design software Software development company


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to