About operators
193
Except for the strict equality (
===
) operator, the comparison operators compare strings only if
both operands are strings. If only one of the operands is a string, both operands convert to
numbers and perform a numeric comparison. For more information on strings and operators,
see
“About using operators with strings” on page 182
. For information on how order and
operator precedence affect your ActionScript, see
“About operator precedence and
associativity” on page 179
.
About assignment operators
The assignment operators take two operands and assign a value to one operand based on the
value of the other operand. All of the operators in this table have equal precedence:
For information on using assignment operators, see
“Using assignment operators”
on page 194
.
Operator
Operation performed
=
Assignment
*=
Multiplication assignment
/=
Division assignment
%=
Modulo assignment
+=
Addition assignment
-=
Subtraction assignment
<<=
Bitwise left shift assignment
>>=
Bitwise right shift assignment
>>>=
Bitwise unsigned right shift assignment
&=
Bitwise AND assignment
^=
Bitwise XOR assignment
|=
Bitwise OR assignment
Summary of Contents for FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH
Page 1: ...Learning ActionScript 2 0 in Flash...
Page 8: ...8 Contents...
Page 18: ...18 Introduction...
Page 30: ...30 What s New in Flash 8 ActionScript...
Page 66: ...66 Writing and Editing ActionScript 2 0...
Page 328: ...328 Interfaces...
Page 350: ...350 Handling Events...
Page 590: ...590 Creating Interaction with ActionScript...
Page 710: ...710 Understanding Security...
Page 730: ...730 Debugging Applications...
Page 780: ...780 Deprecated Flash 4 operators...
Page 830: ...830 Index...