Flash CS3 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript language elements > Operators > &= bitwise AND assignment operator | |||
expression1 &= expression2
Assigns expression1 the value of expression1& expression2. For example, the following two expressions are equivalent:
x &= y; x = x & y;
Availability: ActionScript 1.0; Flash Player 5
expression1 : Number - A number.
expression2 : Number - A number.
Number - The value of expression1 & expression2 .
The following example assigns the value 9 to x:
var x:Number = 15; var y:Number = 9; trace(x &= y); // output: 9
& bitwise AND operator, ^ bitwise XOR operator, ^= bitwise XOR assignment operator, | bitwise OR operator, |= bitwise OR assignment operator, ~ bitwise NOT operator
Flash CS3
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/main/00001253.html