var input:Number;
var is an identity that it is a variable
input is the variable name
Number is the data type or what kind/type of variable it is.
semicolon(;) known as the terminator. It tells the program the statement only ends there.
The following are some of the common data types in Flex:
String
Array
Class
Container
Date
Effect
Error
int
other samples:
var input:Number = new Number;
public var input:Number;
private var input:String;
var input:String;
NOTE: private and public functions will be discuss in other post

No comments:
Post a Comment