Flash CS3 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript language elements > Operators | |||
Symbolic operators are characters that specify how to combine, compare, or modify the values of an expression.
|
Operator |
Description |
|---|---|
|
|
Adds numeric expressions or concatenates (combines) strings. |
|
|
Assigns expression1 the value of expression1 |
|
|
Initializes a new array or multidimensional array with the specified elements (a0 , and so on), or accesses elements in an array. |
|
|
Assigns the value of expression2 (the parameter on the right) to the variable, array element, or property in expression1. |
|
|
Converts expression1 and expression2 to 32-bit unsigned integers, and performs a Boolean AND operation on each bit of the integer parameters. |
|
Assigns expression1 the value of expression1 |
|
|
|
Converts expression1 and expression2 to 32-bit integers, and shifts all the bits in expression1 to the left by the number of places specified by the integer resulting from the conversion of expression2. |
|
This operator performs a bitwise left shift ( |
|
|
|
Also known as the one's complement operator or the bitwise complement operator. |
|
|
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. |
|
Assigns expression1 the value of expression1 | expression2. |
|
|
|
Converts expression1 and expression2 to 32-bit integers, and shifts all the bits in expression1 to the right by the number of places specified by the integer that results from the conversion of expression2. |
|
This operator performs a bitwise right-shift operation and stores the contents as a result in expression1. |
|
|
The same as the bitwise right shift ( |
|
|
Performs an unsigned bitwise right-shift operation and stores the contents as a result in expression1. |
|
|
|
Converts expression1 and expression2 to 32-bit unsigned integers, and returns a 1 in each bit position where the corresponding bits in expression1 or expression2 , but not both, are 1. |
|
Assigns expression1 the value of expression1 |
|
|
|
Indicates one or more lines of script comments. |
|
|
Evaluates expression1 , then expression2 , and so on. |
|
|
Deprecated since Flash Player 5. Adobe recommends that you use the add ( Concatenates two or more strings. |
|
|
Instructs Flash to evaluate expression1 , and if the value of expression1 is |
|
|
A pre-decrement and post-decrement unary operator that subtracts 1 from the expression. |
|
|
Divides expression1 by expression2. |
|
|
Assigns expression1 the value of expression1 |
|
|
Used to navigate movie clip hierarchies to access nested (child) movie clips, variables, or properties. |
|
|
Tests two expressions for equality. |
|
|
Deprecated since Flash Player 5. This operator was deprecated in favor of the Returns |
|
|
Compares two expressions and determines whether expression1 is greater than expression2; if it is, the operator returns |
|
Deprecated since Flash Player 5. This operator was deprecated in favor of the Compares the string representation of expression1 with the string representation of expression2 and returns |
|
|
Compares two expressions and determines whether expression1 is greater than or equal to expression2 ( |
|
|
Deprecated since Flash Player 5. This operator was deprecated in favor of the Returns |
|
|
|
A pre-increment and post-increment unary operator that adds 1 to expression . |
|
|
Tests for the exact opposite of the equality ( |
|
|
Deprecated since Flash Player 5. This operator has been deprecated. Adobe recommends that you use the Tests for the exact opposite of the equality ( |
|
Tests whether |
|
|
|
Compares two expressions and determines whether expression1 is less than expression2 ; if so, the operator returns |
|
|
Deprecated since Flash Player 5. This operator was deprecated in favor of the Returns true if expression1 is less than expression2, false otherwise. |
|
Compares two expressions and determines whether expression1 is less than or equal to expression2 ; if it is, the operator returns |
|
|
Deprecated since Flash Player 5. This operator was deprecated in Flash 5 in favor of the Returns |
|
|
Indicates the beginning of a script comment. |
|
|
|
Performs a Boolean operation on the values of both expressions. |
|
|
Deprecated since Flash Player 5. Adobe recommends that you use the logical AND ( Performs a logical AND ( |
|
|
Inverts the Boolean value of a variable or expression. |
|
|
Deprecated since Flash Player 5. This operator was deprecated in favor of the Performs a logical NOT (!) operation in Flash Player 4. |
|
|
Evaluates expression1 (the expression on the left side of the operator) and returns |
|
|
Deprecated since Flash Player 5. This operator was deprecated in favor of the Evaluates condition1 and condition2, and if either expression is |
|
|
Calculates the remainder of expression1 divided by expression2. |
|
|
Assigns expression1 the value of expression1 |
|
|
Multiplies two numerical expressions. |
|
Assigns expression1 the value of expression1 |
|
|
Creates a new, initially anonymous, object and calls the function identified by the |
|
|
|
Deprecated since Flash Player 5. This operator was deprecated in favor of the Returns |
|
|
Creates a new object and initializes it with the specified name and value property pairs. |
|
|
Performs a grouping operation on one or more parameters, performs sequential evaluation of expressions, or surrounds one or more parameters and passes them as parameters to a function outside the parentheses. |
|
|
Tests two expressions for equality; the strict equality ( |
|
|
Tests for the exact opposite of the strict equality ( |
|
|
When used before and after characters, quotation marks (") indicate that the characters have a literal value and are considered a string, not a variable, numerical value, or other ActionScript element. |
|
|
Used for negating or subtracting. |
|
Assigns expression1 the value of expression1 |
|
|
|
Used for strict data typing; this operator specifies the variable type, function return type, or function parameter type. |
|
The |
|
|
The |
Flash CS3
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/main/00001247.html