(Bitwise And Assignment) - MACROMEDIA FLASH MX 2004-ACTIONSCRIPT LANGUAGE Reference

Actionscript language reference
Table of Contents

Advertisement

&= (bitwise AND assignment)
Availability
Flash Player 5.
Usage
expression1 &= expression2
Parameters
None.
Returns
A 32-bit integer; the value of
Description
Operator; assigns
following two expressions are equivalent:
x &= y;
x = x & y;
For more information, see "Operator precedence and associativity" in Using ActionScript in Flash.
Example
The following example assigns the value
var x:Number = 15;
var y:Number = 9;
trace(x &= y); // output: 9
See also
& (bitwise
AND),
OR
assignment),
40
Chapter 2: ActionScript Language Reference
expression1 & expression2
the value of
expression1
^ (bitwise
XOR),
^= (bitwise XOR
~ (bitwise NOT)
.
expression1 & expression2
to
:
9
x
assignment),
. For example, the
| (bitwise
OR),
|= (bitwise

Advertisement

Table of Contents
loading
Need help?

Need help?

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

This manual is also suitable for:

Flash mx

Table of Contents