Operators > <<= (bitwise left shift and assignment)

<<= (bitwise left shift and assignment)

Syntax

expression1 <<= expression2

Arguments

expression1 A number, string, or expression to be shifted left.

expression2 A number, string, or expression that converts to an integer from 0 to 31.

Description

Operator (compound assignment); this operator performs a bitwise left shift operation and stores the contents as a result in expression1.

Player

Flash 5 or later.

Example

The following two expressions are equivalent:

A <<= B 
A = (A << B)

See also

<< (bitwise left shift)
>>= (bitwise right shift and assignment)