Operators
131
%= (
modulo
assignment
)
Assigns
expression1
the value of
expression1
%
expression2
.
* (
multiplication
)
Multiplies two numerical expressions.
*= (
multiplication
assignment
)
Assigns
expression1
the value of
expression1
*
expression2
.
new
Creates a new, initially anonymous, object and calls the function
identified by the
constructor
parameter.
ne (
not equal
(strings)
)
Deprecated
since Flash Player 5. This operator was deprecated in
favor of the
!= (inequality)
operator.
Returns
true
if
expression1
is not equal to
expression2
;
false
otherwise.
{} (
object
initializer
)
Creates a new object and initializes it with the specified
name
and
value
property pairs.
() (
parentheses
)
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.
=== (
strict
equality
)
Tests two expressions for equality; the strict equality (
===
)operator
performs in the same way as the equality (
==
) operator, except that
data types are not converted.
!== (
strict
inequality
)
Tests for the exact opposite of the strict equality (
===
) operator.
" (
string delimiter
)
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.
- (
subtraction
)
Used for negating or subtracting.
-= (
subtraction
assignment
)
Assigns
expression1
the value of
expression1
-
expression2
.
: (
type
)
Used for strict data typing; this operator specifies the variable type,
function return type, or function parameter type.
typeof
The
typeof
operator evaluate the
expression
and returns a string
specifying whether the expression is a
String, MovieClip,
Object, Function, Number,
or
Boolean
value.
void
The
void
operator evaluates an expression and then discards its
value, returning
undefined
Operator
Description
Summary of Contents for FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Page 1: ...ActionScript 2 0 Language Reference ...
Page 1352: ...1352 ActionScript classes ...