var zipReader:ZipFileReader = new ZipFileReader();
zipReader.addEventListener(ZipEvent.ZIP_DATA_UNCOMPRESS,uncompressData);
zipReader.open(file);
var entries:Array = zipReader.getEntries();
for(var i:int = 0; i

Related Posts

5 Responses to “airxzip: how to use unzipAsync() method”

  • Don Mitchinson より:

    Hi there:
    Just wanted to send a note to thank you for your efforts at creating these unique projects.
    Do you have any source code that you can send for airxmail and airxzip?
    I’d lobe to be able to include variations in my own projects.

    Thanks
    Don Mitchinson
    Calgary, Alberta Canada

  • coltware より:

    Hi Don

    Thank you for comment.

    >Do you have any source code that you can send for airxmail and airxzip?
    I can’t catch the meaning.
    Sorry.. I’m not good at English.

    You means you want to see my AIR software code that I used airxmail or airxmail.
    For example..
    You want to see my GravityMail code.

    Gravity Mail is AIR mail client software.
    http://flex.coltware.com/air-gravity-mail/

    Or…
    You means you want to see other my sample code for airxmail or airxzip.

    If you don’t want to write on this blog,
    Please send me e-mail.

    Regards

  • Adriano Smokovitz より:

    Hello!

    i couldn’t do it!

    could you please help me?

    look what i did

    dbFileSource = File.documentsDirectory.resolvePath(downloadFileName);

    var zipReader:ZipFileReader = new ZipFileReader();
    zipReader.addEventListener(ZipEvent.ZIP_DATA_UNCOMPRESS,uncompressData);
    zipReader.open(dbFileSource);

    var entries:Array = zipReader.getEntries();
    for(var i:int = 0; i < entries.length; i++)
    {
    var entry:ZipEntry = entries[i] as ZipEntry;
    zipReader.unzipAsync(entry);
    }
    }

    private function uncompressData(e:ZipEvent):void
    {
    var entry:ZipEntry = e.entry;
    var file:File = File.documentsDirectory.resolvePath(entry.getFilename());
    var fs:FileStream = new FileStream();
    fs.open(file,FileMode.WRITE);
    fs.writeBytes(e.data);
    fs.close();
    }

  • coltware より:

    Hi adriano

    Could you tell me what you can NOT ?
    Do you have any error message ?

    I can NOT see your problem clearly,
    But maybe you have to switch the code if entry is directory or file.
    If a entry is directory entry ( entry.isDirectory() ) , you have to make directory.
    Please see it
    http://flex.coltware.com/2012/02/25/airxzip-directory-and-file/

    I am sorry that explanation is insufficient.

  • koi より:

    Hi,

    how can I detect that all files written complete in Asnyc mode?

    Thanks

Leave a Reply

Spam protection by WP Captcha-Free

RSS
Add to Google
2011年5月
« 4月   7月 »
1234567
891011121314
15161718192021
22232425262728
293031