Operator
*
/
%
+
-
<<
>>
>>>
instanceof
<
<=
>
>=
==
!=
&
^
|
&&
||
?:
=
*=, /=, %=, +=, -
=, &=, |=, ^=,
<<=, >>=, >>>=
,
Numeric operators
Numeric operators add, subtract, multiply, divide, and perform other arithmetic operations.
The most common use of the increment operator is
You can use the increment operator before or after an operand. In the following example,
incremented first and then tested against the number 30:
if (++age >= 30)
Description
Multiply
Divide
Modulo
Unary plus
Unary minus
Bitwise left shift
Bitwise right shift
Bitwise right shift (unsigned)
Instance of (finds the class of which the object is an
instance)
Requires Flash Player 6 or later
Less than
Less than or equal to
Greater than
Greater than or equal to
Equal
Not equal
Bitwise AND
Bitwise XOR
Bitwise OR
Logical AND
Logical OR
Conditional
Assignment
Compound assignment
Comma
Lowest precedence
Using operators to manipulate values in expressions
Associativity
Left to right
Left to right
Left to right
Right to left
Right to left
Left to right
Left to right
Left to right
Left to right
Left to right
Left to right
Left to right
Left to right
Left to right
Left to right
Left to right
Left to right
Left to right
Left to right
Left to right
Right to left
Right to left
Right to left
Left to right
instead of the more verbose
i++
.
i = i+1
is
age
33
Need help?
Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?