public function calculate():void{
var x = 1;
}
function is a an indication that the statement is a function
Wednesday, January 27, 2010
Friday, January 22, 2010
Flex: declare a variable
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
Thursday, January 21, 2010
my first post
hello everyone!
in this blog, i will do a tutorial in any language i know like C, Java, HTML, Flex, PHP, etc.
Hope you'll learn a lot in this blog
Thank you!
in this blog, i will do a tutorial in any language i know like C, Java, HTML, Flex, PHP, etc.
Hope you'll learn a lot in this blog
Thank you!
Subscribe to:
Posts (Atom)
