<< (bitwise left shift)
Top  Previous  Next


SWiSH Player Support
SWF5 or later - Supported Internally

Syntax
expression1 << expression2

Arguments
expression1: a number or expression for the left shift to be applied to
expression2: a number or expression that converts to an integer from 0 to 31

Returns
Nothing.

Description
Bitwise Operator; converts both expressions to 32-bit integers and shifts all of the bits in expression1 by the number of places specified by expression2. The bit positions that are emptied by the left shift are filled with a zero. Each value that is shifted by one position to the left is the same as multiplying it by 2.