I’m working on porting a Java class to AS3. Most of the guts of the class involve bit level programming. I’ve come across this code written in Java:
int pixels[] = new int[width * height];
short gpixels[] = new short [width * height];
further on in the code I run across something like this:
gpixels[i]
What is the equivalent of these two variables in AS3. Are they ByteArrays or integers? I thought “short” was a 16-bit integer and “int” was a 32-bit integer.
ActionScript does not have short, long, float, double, etc…
You would map numerical types to int, uint, or Number.
AS3 Number is IEEE-754 double-precision floating-point number
AS3 has byte and bitwise operations.