03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

^= bitwise XOR assignment operator<br />

expression1 ^= expression2<br />

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

following two statements are equivalent:<br />

x ^= y x = x ^ y<br />

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

expression1 : Number - Integers <strong>and</strong> variables.<br />

expression2 : Number - Integers <strong>and</strong> variables.<br />

Returns<br />

Number - The result of the bitwise operation.<br />

Example<br />

The following example shows a bitwise XOR assignment (^=) operation:<br />

// 15 decimal = 1111 binary<br />

var x:Number = 15;<br />

// 9 decimal = 1001 binary<br />

var y:Number = 9;<br />

trace(x ^= y); // returns 6 decimal (0110 binary)<br />

See also<br />

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

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

NOT operator<br />

/* block comment delimiter operator<br />

/* comment */<br />

/* comment<br />

comment */<br />

Indicates one or more lines of script comments. Any characters that appear between the<br />

opening comment tag (/*) <strong>and</strong> the closing comment tag (*/), are interpreted as a comment<br />

<strong>and</strong> ignored by the ActionScript interpreter. Use the // (comment delimiter) to identify singleline<br />

comments. Use the /* comment delimiter to identify comments on multiple successive<br />

lines. Leaving off the closing tag (*/) when using this form of comment delimiter returns an<br />

error message. Attempting to nest comments also returns an error message. After an opening<br />

comment tag (/*) is used, the first closing comment tag (*/) will end the comment, regardless<br />

of the number of opening comment tags (/*) placed between them.<br />

128 ActionScript language elements

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

Saved successfully!

Ooh no, something went wrong!