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
source share