使用 as3 解压缩和保存文件? [英] Unzip and save files using as3?

查看:33
本文介绍了使用 as3 解压缩和保存文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在本地文件夹中有一个 zip 和 rar 文件列表.
我需要做的就是提取 zip 和 rar 文件的内容,并将它们保存在与相应存档文件同名的文件夹中.
由于我是 as3 的新手,我不知道这个.
有这方面的图书馆吗???




提前致谢...

I have a list of zip and rar files in a local folder.
All I need to do is to extract the contents of the zip as well as rar files and to save them in a folder with the same name of the respective archive file.
Since I am new to as3, I have no clue for this.
Is there any Library for this???




Thanks in advance...

推荐答案

有一些库可以处理 as3 中的 ZIP 文件,但请注意,这对于 ActionScript 3 的初学者来说并非易事.

There are a few libraries out there that deal with ZIP files in as3, but beware that this is no easy task for a beginner in ActionScript 3.

  • FZip 似乎是最广泛使用的,但它要求 ZIP 档案有 Adler32校验和.该库提供了一个 Python 脚本,该脚本将校验和注入 ZIP 文件中,以便在解压缩之前对文件进行预处理.

  • FZip seems to be the most widely used, but it requires that the ZIP archives have Adler32 checksums. Provided with the library there is a Python script that injects the checksum into ZIP files to preprocess the files before unzipping them.

JZlib 的 As3 端口,一个用于与 Fzip 一起使用,而不是上面提到的 Python 脚本.

As3 port of JZlib, an as3 library to use with Fzip instead of the Python script mentioned above.

AS3 Zip 库(作者声称比 FZip 慢)这避免了 Addler32 校验和问题.

AS3 Zip Library (the author states that is slower than FZip) that avoids the Addler32 checksum problem.

Adobe Air 上,您可以查看 Adobe 网站上的这篇文章.

On Adobe Air, you can take a look at a detailed explanation and a working example in this article on the adobe website.

希望这有帮助!

这篇关于使用 as3 解压缩和保存文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆