>> (bitwise right shift)
Top  Previous  Next


SWiSH Player Support
SWF5 or later - Supported Internally

Syntax
expression1 >> expression2

Arguments
expression1: a number or expression for the right 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 bits shifted to the right are discarded. In order to maintain the sign of the original expression, the bits are filled with 0 or 1 based on the bit farthest to the left. Each value that is shifted by one position to the left is the same as dividing it by 2 and removing the remainder.