03.05.2013 Views

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

See also<br />

&= bitwise AND assignment operator, ^ bitwise XOR operator, ^= bitwise XOR<br />

assignment operator, | bitwise OR operator, |= bitwise OR assignment operator,<br />

~ bitwise NOT operator<br />

&= bitwise AND assignment operator<br />

expression1 &= expression2<br />

Assigns expression1 the value of expression1& expression2. For example, the following<br />

two expressions are equivalent:<br />

x &= y;<br />

x = x & y;<br />

Availability: <strong>ActionScript</strong> 1.0; Flash Player 5<br />

Oper<strong>and</strong>s<br />

expression1 : Number - A number.<br />

expression2 : Number - A number.<br />

Returns<br />

Number - The value of expression1 & expression2 .<br />

Example<br />

The following example assigns the value 9 to x:<br />

var x:Number = 15;<br />

var y:Number = 9;<br />

trace(x &= y); // output: 9<br />

See also<br />

& bitwise AND operator, ^ bitwise XOR operator, ^= bitwise XOR assignment<br />

operator, | bitwise OR operator, |= bitwise OR assignment operator, ~ bitwise<br />

NOT operator<br />

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!