This is a discussion on ByteArray within the Tutorials forums, part of the Flash English category; Having Actionscript 3.0 become a powerful Object Oriented language in its own right, it couldn?t allow for a class like ...
Having Actionscript 3.0 become a powerful Object Oriented language in its own right, it couldn?t allow for a class like the ByteArray.
Java programmers won?t classify it as news and probably have more knowledge and familiarity with it than us actionscripters.
The ByteArray class manages binary data flows, used to encrypt and decrypt strings with the aid of complicated algorithms.
This class would be very useful to pass secret data from Flash to the server, like, for example, a product purchase form in an e-commerce site developed in Flash.
In this case secret data like credit card number were reluctantly passed to the server because of their vulnerability, but now it is safer with ByteArray.
Personally I?m not very knowledgeable of binary and algorithmic programming, therefore I limit this article to pass on some of the results I found in a web research:
Here is what I discovered?
Steve Webster has converted the Base64 algorithm to Actionscript 3.0 and you can see it and download the source files from his site:
Dynamic Flash Actionscript 3.0 Base64 encoder/decoder
Here follow some open-source projects in which algorithms are applied to Actionscript 3.0 and the ByteArray class:
Gif Animation Encoder