Flash ActionScript 2 Unzip / Unzip Tool

Do you know about any zip / unzip or script component for flash / actionscript 2?

I know this library for flex / AS3, but is there in AS2 that will save me from a long conversion attempt?

Is there such a library that supports the creation / analysis of password protected passwords for zip files?

+4
source share
2 answers

in principle, this can be done ... but it will be slow ...

http://code.google.com/p/hxformat/

in fact, you would load the string and then decrypt it into an array of bytes (using Bytes.ofString) ... it will take a lot of time ... and you will not be able to do much with the results, I think, since AS2 api is very limited .. .

you'll need haXe, which is an open source language that allows you to target many platforms, one of which is AVM1 ... just go to haXe.org ... and find the right IDE to compile things ...

the problem is that it will be easy to compile the code, but it may be difficult for you to use the result, since haXe-> swc only works for AVM2 ... but there are several solutions for this ...

In any case ... if possible, you should transfer your code to AS3, as the phenomes suggested ... AS2 is really outdated, worse than the language, and is aimed at a slower virtual machine and a much smaller API ... In addition, there is many more AS3 libs there ... just my personal opinion ...

well, good luck anyway ...;)

Greetz

back2dos

+3
source

I canโ€™t say anything completely, but I donโ€™t think that such a library is possible in AS2. Without ByteArrays, you donโ€™t have binary data access to start with, so the only approach I can imagine is something incredibly hacky, for example, reading a file as a bitmap and setting its bits using getPixel and setPixel - the mind is afraid this thought.

I think your only real options are:

  • to put your code in AS3 and use the library associated with it
  • Use your AS2 code using the AS3 library through the LocalConnection bridge (this is hairy, but there are several topics here) SOA
  • Make your zipping outside of Flash (e.g. server side in PHP, etc.).
+2
source

All Articles