`

Friday, September 17, 2010

Data types

ActionScript primarily consists of "fundamental" or "simple" data types
which are used to create other data types. These data types are very
similar to Java data types. Since ActionScript 3 was a complete rewrite
of ActionScript 2, the data types and their inheritances have changed.


  • String - A list of characters such as "Your Name"
  • Number - Any Numeric value
  • int - The int data type is a 32-bit integer between -2,147,483,648
and 2,147,483,647.
  • uint - The uint (Unsigned Integer) data type is a 32-bit unsigned
integer between 0 and 4,294,967,295.
  • Boolean - A simple binary storage that can only be "true" or "false".
  • Object - Object is the data type all complex data types inherit from.
It allows for the grouping of methods, functions, parameters,
and other objects.
  • Null - The Null data type contains only one value, null. This is the
default value for the String data type and all classes that define complex
  • void - The void data type contains only one value, undefined. In previous
versions of ActionScript, undefined was the default value for
  • Date - A date object containing the date/time digital representation.
  • Error - A generic error object that allows runtime error reporting when
thrown as an exception.
  • Function - The core class for all Flash method definitions.
  • RegExp - A regular expression object for strings.

And so on..

No comments: