Actionscript 3 class library to load standard ZIP archives and extract/decompress contained files
by Carlos Pinho, June 23rd, 2007
  • Share
  • Share

flash_platform_icons.gifClaus Wahlers released the update for FZIP, a AS3 class library to load, extract/decompress files.

Main updates are:

  • Added support for Adobe Air. The Adobe Air runtime provides a low level inflate method, making it possible to load any ZIP archive and decompress compressed files without the need of injecting Adler32 checksums.
  • Added FZipLibrary class for higher level access to files in a ZIP archive. “FZipLibrary processes files (based on file extensions) from an FZip instance and converts them into usable formats. Files can be converted to either a BitmapData or DisplayObject classes. Data embedded in SWF files (like classes) can also be retrieved. Flash’s built-in Loader class is used to convert formats, so the only formats currently supported are ones that Loader supports. As of this writing they are SWF, JPEG, GIF, and PNG.”
  • Bug fix: There was a problem with filenames containing special characters. Filename encoding now defaults to UTF-8. In case the filenames are encoded differently in your ZIP, you can specify the encoding in the FZip constructor.

Brgds,

CP

Copy and Paste the code below
Email and IM
Websites
Forums
Get This

No Responses to “Actionscript 3 class library to load standard ZIP archives and extract/decompress contained files”

  1. Aria Rajasa Says:

    Is there a way to zip a group of file using adobe air + flex? or HTML + Javascript + Adobe AIR? I am making a flickr photo uploader with AIR and was looking for a way to simplify it by just zipping all the pics

  2. Jesse Donat Says:

    I don’t suppose you know of a way to *create* zips with flash?

  3. psnipiv Says:

    Is there any method to unzip a content using flash+MDM zinc or AIR.
    please do reply.

  4. Swami Kevala Says:

    Is there a way to catch the error that occurs if you try to load a file which is not a zip file. (My application lets the user browse for a file to unzip – if he selects some other random file, I want to display an Alert).

  5. Michael Dinowitz Says:

    Is there a way to use this or something like it to unzip .rar files?

  6. » Adobe User Group - CS4, Shortcut to Brilliant, bones en het spel Anubis - deel1 Says:

    [...] Zoals: -save game creert een xml en wordt door Actionscript gezipped en op de server geplaatst. Zippen kan tegenwoordig met AS en het is vet, gewoon omdat het kan en het efficiënter gebruik maken van [...]

Let leave a Comments for this post.