问题描述
您知道任何压缩/解压缩组件或脚本闪光/动作2?
Are you aware of any zip/unzip component or script for flash / actionscript 2 ?
我知道这个库了解弯曲/ AS3,但有一个用于AS2,将节省我很长转换的尝试?
I'm aware of this library for flex / AS3, but is there one for AS2 that will save me a long conversion attempt?
有没有办法,支持创建/解析密码保护的zip文件这样的图书馆吗?
Is there such a library that supports creating/parsing password protected zip files?
推荐答案
基本上是可以做到的......但是会很慢...
basically it can be done ... but will be slow ...
HTTP://$c$c.google.com/p/hxformat/
其实你会加载的字符串,然后它会去codeD转换为字节(使用Bytes.ofString)的数组...这将需要大量的时间,而且你会无法做了很多的结果,我想,因为AS2 API是非常有限的...
actually you would load the string and then it'll be decoded into an Array of bytes (using Bytes.ofString) ... this will take a lot of time ... and you will not be able to do a lot with the results, i guess, since AS2 api is very limited ...
您需要haXe的,这是一个开源的语言,这可以让您针对许多平台,其中之一是AVM1 ......只是去haXe.org ...并找到一个合适的IDE来把事情编译......
you will need haXe, which is an open source language, that allows you to target lots of platforms, one of which is AVM1 ... just go to haXe.org ... and find a suitable IDE to get things compiled ...
问题是,它会很容易编译code,但你可能有一个很难使用的结果,因为haXe->深港西部通道仅适用于AVM2 ......但也有多种解决方案为...
problem is, it will be easy compiling the code, but you may have a hard time using the outcome, since haXe->swc only works for AVM2 ... but there are multiple solutions for that ...
反正......如果可能的话,你应该端口code到AS3,因为fenomas建议... AS2真的是过时的,较差的语言和目标是一个较慢的虚拟机和一个更小的API ...此外,还有很多更AS3库在那里......只是我个人的意见了......
anyway ... if possible, you should port your code to AS3, as fenomas suggested ... AS2 is really outdated, poorer as language and target's a slower VM and a much smaller API ... also, there is a lot more AS3 libs out there ... just my personal opinion ...
好了,祝你好运反正...;)
well, good luck anyway ... ;)
这篇关于压缩和解压工具为Flash的ActionScript 2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!