Operators
117
+ addition operator
expression1
+
expression2
Adds numeric expressions or concatenates (combines) strings. If one expression is a string, all
other expressions are converted to strings and concatenated. If both expressions are integers,
the sum is an integer; if either or both expressions are floating-point numbers, the sum is a
floating-point number.
{} (
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 Lite 2
Page 1: ...Flash Lite 2 x ActionScript Language Reference...
Page 22: ...22 Contents...
Page 244: ...244 ActionScript language elements...
Page 760: ...760 ActionScript classes...