The language of actionscript doesn’t use traditional variable types like advanced computer languages (java, C++, c.) Actionscript does things a little different. They like to be a little more generic since creating room in memory is not a heavy issue. Because of this the data types are a fair amount more user friendly.
The variable types flash uses are as follows:
“Int” This stands for integer and can be a negative or positive and thus include 0. (-4,-3,-2,-1,0,1,2,3,4,5 are all examples of the int data type.)
“Uint” This is very similar to the int data type however it cannot hold negative numbers, or ‘0.’ It can only hold whole numbers.
‘Number’ A number can be any number. This include negatives, 0, positives, and decimal numbers (floating point) which is the equivalent of declaring a double, float, or single.
‘String’ This data type will display characters of text. An example of this would be “text,”
‘Array’ An array data type is more than one item in a variable. This means that could store a list of bowling scores.(1,6,2,4,2).
‘Boolean’ A Boolean data type traditionally takes up one bit of data because it only stores a 0, or a 1 which is interpreted to true or false.
‘Custom object’ This can be whatever you want and is declared as a variable type because it is stored in memory much like a variable. The difference is that this can store multiple variable types.