守望者--AIR技术交流

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

搜索
热搜: ANE FlasCC 炼金术
查看: 1322|回复: 0

[出售应用] Zip管理器ANE

[复制链接]
  • TA的每日心情
    擦汗
    11 小时前
  • 签到天数: 433 天

    [LV.9]以坛为家II

    1739

    主题

    2091

    帖子

    12万

    积分

    超级版主

    Rank: 18Rank: 18Rank: 18Rank: 18Rank: 18

    威望
    457
    贡献
    24
    金币
    50924
    钢镚
    1419

    开源英雄守望者

    发表于 2014-12-29 22:09:33 | 显示全部楼层 |阅读模式
    项目出售
    项目名称: Zip Manager ANE
    有效期至: 2020-12-31
    价格: $15
    折扣: -
    折扣截止:
    QQ:
    邮箱:
    电话:
    手机:
    联系人: http://myappsnippet.com/zip-manager-adobe-air-extension/
    所在地: -
    Zip Manager ANE V2.0 (Android+iOS)
    What’s new in V2.0
    1) rebuilt the whole thing to add support for iOS
    2) supports Android-ARM, Android-x86, iPhone-ARM
    3) processes the zip works on threads natively both on Android and iOS
    4) depricated the download zip methods. we have a separated powerful DownloadManager class for this job: DM
    5) added methods to cancel zipping or unzipping progresses


    ZipManager class will zip or unzip big, big zip archives super fast as it is using native process in threads supporting both Android and iOS. you will have listeners to watch the process progress. you have the option to cancel a zip or unzip progress. it’s job is to concentrate on zip archiving and it does it in the best possible way!
    in AS3, there are many different zip libraries which will do the same thing but they are not good enough when it comes to mobile usage because of the following reasons:
    - They load the whole zip into runtime and then try to zip/unzip reading bytes which is too time consuming
    – loading a big zip file using AS3 libraries will fail on mobile devices because it takes too much RAM
    – AS workers are not yet supported on iOS and your Air UI will freez untill the process is finished!
    – the bottom line is that AS3 libs for handling zip files are TOO slow and not practical
    using this extension will solve all the above problems. you will be amazed how fast it works no matter the size of the zip file. we tested with a ~1GB zip archive and it worked just fine

    manifest setup
    1. <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

    2. <extensions>
    3.   <extensionID>com.doitflash.air.extensions.zipManager</extensionID>
    4. </extensions>
    复制代码
    Usage
    1. import com.doitflash.air.extensions.zip.ZipManager;
    2.      import com.doitflash.air.extensions.zip.ZipManagerEvent;
    3.      
    4.      var _ex:ZipManager = new ZipManager();
    5.      _ex.addEventListener(ZipManagerEvent.START, onStart);
    6.      _ex.addEventListener(ZipManagerEvent.ERROR, onError);
    7.      _ex.addEventListener(ZipManagerEvent.PROGRESS, onProgress);
    8.      _ex.addEventListener(ZipManagerEvent.COMPLETED, onComplete);
    9.      
    10.      _ex.unzip(File.documentsDirectory.resolvePath("TheZipFile.zip"), File.documentsDirectory.resolvePath("unzipLocation"));
    11.      
    12.      function onStart(e:ZipManagerEvent):void
    13.      {
    14.              trace("zip process started...");
    15.      }
    16.      
    17.      function onError(e:ZipManagerEvent):void
    18.      {
    19.              trace("zip process ERROR: " + e.param.msg);
    20.      }
    21.      
    22.      function onProgress(e:ZipManagerEvent):void
    23.      {
    24.              trace("zip Progress = " + e.param.perc + "%");
    25.      }
    26.      
    27.      function onComplete(e:ZipManagerEvent):void
    28.      {
    29.              trace("[zip process finished]");
    30.      }
    复制代码
    在线API

    http://myappsnippet.com/DOC/com/doitflash/air/extensions/zip/package-detail.html

    DEMO下载:
    http://myappsnippet.com/downloads/AIR_EXTENSIONS/zipManager/zipManager_AIR.zip

    相关链接:
    http://myappsnippet.com/zip-manager-adobe-air-extension/

    http://bbs.9ria.com/thread-427231-1-1.html



    守望者AIR技术交流社区(www.airmyth.com)
    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    
    关闭

    站长推荐上一条 /4 下一条

    QQ|手机版|Archiver|网站地图|小黑屋|守望者 ( 京ICP备14061876号

    GMT+8, 2017-10-19 22:34 , Processed in 1.218750 second(s), 35 queries .

    守望者AIR

    守望者AIR技术交流社区

    本站成立于 2014年12月31日

    快速回复 返回顶部 返回列表