Symbols > ^= (bitwise XOR assignment) |
^= (bitwise XOR assignment)
bitwise xor assignment, ^=
Availability
Flash Player 5.
Usage
expression1^=expression2
Parameters
expression1,expression2 Integers and variables.
Returns
None.
Description
Operator (bitwise compound assignment); assigns expression1 the value of expression1 ^ expression2. For example, the following two statements are the same:
x ^= yx = x ^ y
Example
The following is an example of a ^= operation.
// 15 decimal = 1111 binaryx = 15;// 9 decimal = 1001 binaryy = 9;trace(x ^= y);//returns 6 decimal( = 0110 binary)
See also