Author: steve happ | Email
Website : www.video-animation.com
Advertisement
Bitwise Operators
Bitwise operators operate on the value to base 2 (binary). Operands must be integers.
Left Shift ("<<") - shifts the bits of the left operand some number of positions to the left.
e.g.
someNum = 1;
0 0 0 0 0 0 0 1
SomeNum = someNum<<1;
0 0 0 0 0 0 1 0
SomeNum = someNum<<2;
0 0 0 0 1 0 0 0
Right Shift (">>")
SomeNum = someNum >>3;
0 0 0 0 0 0 0 1
The leftShift operator inserts "0" from the right.
The Right Shift operator inserts "0" from the left.
Variables (AS 2.0)
A variable is identified by a user-supplied name. Each variable is of a particular data type. E.g.
Var num:Number;
"Number" is a type specifier. A declaration can follow the template:
var variableName:DataType;
We hope the information helped you. If you have any questions
or comments, please don't hesitate to post them on the
Forums section
Submit your Tutorial at Click Here