Saturday, May 3, 2008

Data Types In Action Script

Action Script in a Object Oriented Programming language that comes with Flash Software. Every programming language has data types. Data types, as the name suggests are the types of data used in the code. The type of data may be string of characters, numbers or boolian. In Action Script data types can be divided into two main categories:

1) Primitive Data Type

2) Complex Data Type

The primitive Data type variables are stored at lower level of abstraction which means operations on this types of data type is faster. Primitive data type includes null, undefined, boolean, string and number. In contrast to the Primitive data type, complex data type is slower in the operation. This data type includes array, functions, Date, Movie Clip, void, Error and XML.

The Boolean data type has two values -true and false. The default value of a boolean variable is false. Null data types means the variable has the value null which means no value. void is a complex data Type and is generally used for the functions which returnes no value.

No comments: