Home > ActionScript3.0 | Library > [AS3]zip解凍

[AS3]zip解凍

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>

Comments:0

Comment Form
Remember personal info

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

Home > ActionScript3.0 | Library > [AS3]zip解凍

Search
Google
Feeds
Meta
Advertisement

Return to page top