Bitwise Xor Assignment Operator; Block Comment Delimiter Operator - MACROMEDIA FLASHLITE2 ACTIONSCRIPT-LANGUAGE Reference

Actionscript language reference
Table of Contents

Advertisement

^= bitwise XOR assignment operator

expression1 ^= expression2
Assigns
expression1
following two statements are equivalent:
x ^= y x = x ^ y
Availability: ActionScript 1.0; Flash Lite 2.0
Operands
expression1 :
Number
expression2 :
Number
Returns
- The result of the bitwise operation.
Number
Example
The following example shows a bitwise XOR assignment (^=) operation:
// 15 decimal = 1111 binary
var x:Number = 15;
// 9 decimal = 1001 binary
var y:Number = 9;
trace(x ^= y); // returns 6 decimal (0110 binary)
See also
& bitwise AND operator
,
operator
| bitwise OR operator
NOT operator

/* block comment delimiter operator

/* comment */
/* comment
comment */
the value of
expression1 ^ expression2
- Integers and variables.
- Integers and variables.
,
&= bitwise AND assignment operator
,
|= bitwise OR assignment operator
. For example, the
,
^ bitwise XOR
,
~ bitwise
Operators
137

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash lite 2

Table of Contents