Once a variable has been declared, you can assign a value to it using a simple assignment statement with an equals sign : Variable Declare « Data Type « Flash / Flex / ActionScript
Once a variable has been declared, you can assign a value to it using a simple assignment statement with an equals sign
package{
import flash.display.Sprite;
publicclass Main extends Sprite{
public function Main(){
var myVariable:Number;
myVariable = 6;
trace(myVariable);
}
}
}