Please test: updated ActionScript GZIP library with Flash Player 10 support

Posted February 27, 2009 3:40 pm
Filed under: AS3, ActionScript, Articles by Paul, Projects

Since I first created my ActionScript GZIP library as a test of Adobe AIR’s file compression capability, the number one request I’ve received has been to add support for Flash Player-only projects. With the release of Flash Player 10 last fall, I couldn’t use the lack of player support as an excuse any more. So now I’ve just been using the “not enough time” excuse…

But not any more. A few days ago I checked in a beta (barely tested) version of that adds support for Flash Player 10 (browser) projects. It’s not linked from the main google code project page yet, but you can get to it from the GZIP encoder project downloads page.

The download that adds Flash Player 10 support is “ascompress-.2.0.zip”. It now includes two SWC files:

As I implied when I described this as “beta (barely tested)” I haven’t done a lot of testing of this code yet. I don’t actually anticipate that there will be issues — really all I did was refactor the code into two classes instead of one — but that doesn’t mean there won’t be any issues, of course. =) If you’re interested, and especially if you’re one of the people who’s asked for this support, I would love it if you try it out and let me know how it works for you. If you’re willing to test it out, I’ll be happy to quickly make any fixes necessary.

You can leave a comment, or trackback from your own site.

6 Comments so far


  1. Danny Patterson » GZIP-Encoded HTTP Response in Adobe AIR is reported to have said:

    Kramer auto Pingback[…] Yes, Paul updated the library to work with Flash Player projects too: http://probertson.com/articles/2009/02/27/actionscript-gzip-library-flash-player-10/. […]


  2. joao is reported to have said:

    I’m new to flex, sorry if there some lame questions. Sorry for bad english too…

    This is what I was looking for!

    Our application sends at start an amount of XML data, to avoid un-Necessary Validation calls to the main Server;

    How can i, continuing using HttpService , get the compressed data from the Main (Java)Aplication in the Flex Client(wich is Embued in JSP);

    - HttpService doesn’t support bytearray - should i transfer the response in Base64encoding?, should i redefine HttpService to accept the ans?;

    - I need to pass at least 2 arguments : 2 strings.

    If i can do this, without coldfusion, UrlLoader, Webservices, better.

    Im thinking in compress the Swf(s) too… next step;

    Please give me some answers or point me in a direction.
    TY


  3. JB Tellez is reported to have said:

    Thank you! I’m needing to download and save a zip file using BlazeDS. Getting the data as a byteArray then saving locally was no problem. Except the archive was corrupt. I had finally decided to give up and just use a servlet for the file transfer when I ran across your post. It works! I must admit I don’t really understand why it works, but it does. Thanks again.


  4. Harish is reported to have said:

    Were shud be the GZIPEncoder_Flash.swc GZIPEncoder_AIR.swc placed hat will e the physical location??


  5. JB Tellez is reported to have said:

    Hi Harish,

    Placing the swf files in my Flex project’s libs folder worked for me. I imagine they’d work fine placed elsewhere as long as your project had the location added to the library paths.

    Good luck.


  6. dajianshi is reported to have said:

    Thanks a lot! you did a great job! I need app run in webpage or standalone! so 2.0 saved me!!! Thanks again

Add your comment





Comment notes

Please keep comments on topic. Comments that are inappropriate or offensive will be edited or removed.

Paragraphs and line breaks are automatically converted to HTML, and quotation marks are converted to “smart” quotes.

The following XHTML tags can be used: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> . All others will be removed.

Articles by Type

Articles by Topic

Random Reading

Currently...

Subscribe