User Guide

128 ActionScript language elements
& (bitwise AND)
Converts expression1 and expression2 to 32-bit unsigned
integers, and performs a Boolean AND operation on each bit of the
integer parameters.
&= (bitwise AND
assignment)
Assigns expression1 the value of expression1& expression2.
<< (bitwise left
shift)
Converts expression1 and expression2 to 32-bit integers, and
shifts all the bits in expression1 to the left by the number of places
specified by the integer resulting from the conversion of
expression2.
<<= (bitwise left
shift and
assignment)
This operator performs a bitwise left shift (<<=) operation and stores
the contents as a result in expression1.
~ (bitwise NOT) Also known as the one's complement operator or the bitwise
complement operator.
| (bitwise OR) Converts expression1 and expression2 to 32-bit unsigned
integers, and returns a 1 in each bit position where the corresponding
bits of either expression1 or expression2 are 1.
|= (bitwise OR
assignment)
Assigns expression1 the value of expression1 | expression2.
>> (bitwise right
shift)
Converts expression1 and expression2 to 32-bit integers, and
shifts all the bits in expression1 to the right by the number of places
specified by the integer that results from the conversion of
expression2.
>>= (bitwise right
shift and
assignment)
This operator performs a bitwise right-shift operation and stores the
contents as a result in expression1.
>>> (bitwise
unsigned right
shift)
The same as the bitwise right shift (>> ) operator except that it does
not preserve the sign of the original expression because the bits on
the left are always filled with 0. Floating-point numbers are converted
to integers by discarding any digits after the decimal point.
>>>= (bitwise
unsigned right shift
and assignment)
Performs an unsigned bitwise right-shift operation and stores the
contents as a result in expression1.
^ (bitwise XOR) Converts expression1 and expression2 to 32-bit unsigned
integers, and returns a 1 in each bit position where the corresponding
bits in expression1 or expression2 , but not both, are 1.
^= (bitwise XOR
assignment)
Assigns expression1 the value of expression1 ^ expression2.
Operator Description