MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference page 128

Actionscript 2.0 language reference
Table of Contents

Advertisement

Operator
&
(bitwise
AND)
&=
(bitwise AND
assignment)
<<
(bitwise left
shift)
<<=
(bitwise left
shift and
assignment)
~
(bitwise
NOT)
|
(bitwise
OR)
|=
(bitwise OR
assignment)
>>
(bitwise right
shift)
>>=
(bitwise right
shift and
assignment)
>>>
(bitwise
unsigned right
shift)
>>>=
(bitwise
unsigned right shift
and
assignment)
^
(bitwise
XOR)
^=
(bitwise XOR
assignment)
128
ActionScript language elements
Description
Converts expression1 and expression2 to 32-bit unsigned
integers, and performs a Boolean AND operation on each bit of the
integer parameters.
Assigns expression1 the value of expression1& expression2.
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.
This operator performs a bitwise left shift (<<=) operation and stores
the contents as a result in expression1.
Also known as the one's complement operator or the bitwise
complement operator.
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.
Assigns expression1 the value of expression1 | expression2.
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.
This operator performs a bitwise right-shift operation and stores the
contents as a result in expression1.
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.
Performs an unsigned bitwise right-shift operation and stores the
contents as a result in expression1.
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.
Assigns expression1 the value of expression1 ^ expression2.

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF