Actionscript Operators Tutorial
Actionscript Operators perform operations. For example addition operator (+) will perform addition operations. Those values that operators work on are known as operands. For example take a look at the below expression
var c:Number = 5+9;
trace(c);
In above example + is an operator and 5, 9 are operands. Some of the most common operators of actionscript are given here
Actionscript Mathematical Operators
+
-
*
/
%
+=
-=
==
!=
Actionscript String Operators
+ concatination
New Line
var fName:String = "Shahid";
var lName:String = "Khan";
var myName:String = fName + lName;
trace(myName);
//The result will be Shahid Khan
Now let's have a look another string operator example by using backslash n ( ). is used for line break, it will take the contents to a new line
var fName:String = "Shahid";
var lName:String = "Khan";
var myName:String = fName + " " + lName;
trace(myName);
//The result will be
Shahid
Khan

