- 2007-10-07 (Sun) 10:24
- ActionScript3.0 | Library
as3でzipの操作用ライブラリ
FZip
ライセンスはzlib/libpng license
商用利用もOKなライセンスっぽい。
zipの解凍用で圧縮はできないのかな?このライブラリは。
.airファイルの中身をのぞいたりもできますね。
< ?xml version="1.0" encoding="utf-8"?>
< mx :WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()">
< mx :Script>
< ![CDATA[
import deng.fzip.FZip;
public var fzip:FZip;
public function init():void{
fzip = new FZip();
var req:URLRequest = new URLRequest();
req.url = "hogehoge.air";
fzip.addEventListener(Event.COMPLETE, loadComplete);
fzip.load(req);
}
public function loadComplete(e:Event):void{
status = fzip.getFileCount().toString();
for(var i:int=0;i<fzip .getFileCount();i++){
ta.text += fzip.getFileAt(i).filename+"n";
ta.text += fzip.getFileAt(i).getContentAsString();
ta.text += "nn";
}
}
]]>
< /mx>
< mx :TextArea id="ta" width="100%" height="100%"/>
< /mx:WindowedApplication>
- Newer: [Flex]ポップアップウインドウの作り方
- Older: [Flex3]Flex3 Beta2
Comments:0
Trackbacks:0
- Trackback URL for this entry
- http://www.jinten.net/blog/archives/23/trackback
- Listed below are links to weblogs that reference
- [AS3]zip解凍 from Jinten Blog