EasyManua.ls Logo

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT - Page 249

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT
816 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
|| (logical OR) 249
See also
[] (array access)
, new, Object class
| (bitwise OR)
Availability
Flash Player 5.
Usage
expression1 | expression2
Parameters
expression1,expression2
A number.
Returns
None.
Description
Operator (bitwise); converts expression1 and expression2 to 32-bit unsigned integers, and
returns a 1 in each bit position where the corresponding bits of either
expression1 or
expression2 are 1.
Example
The following is an example of a bitwise OR operation.
// 15 decimal = 1111 binary
x = 15;
// 9 decimal = 1001 binary
y = 9;
trace(x | y);
// 1111 | 0011 = 1111
// returns 15 decimal (= 1111 binary)
|| (logical OR)
Availability
Flash Player 4.
Usage
expression1 || expression2
Parameters
expression1,expression2
A Boolean value or an expression that converts to a Boolean value.
Returns
A Boolean value.

Table of Contents

Related product manuals