
Operators
129
/*..*/ (
block
comment delimiter
)
Indicates one or more lines of script comments.
, (
comma
)
Evaluates
expression1
, then
expression2
, and so on.
add (
concatenation
(strings)
)
Deprecated
since Flash Player 5. Macromedia recommends that you
use the add (
+
) operator when creating content for Flash Player 5 or
later. This operator is not supported in Flash Player 8 or later.
Concatenates two or more strings.
?: (
conditional
)
Instructs Flash to evaluate
expression1
, and if the value of
expression1
is
true
, it returns the value of
expression2
; otherwise
it returns the value of
expression3
.
-- (
decrement
)
A pre-decrement and post-decrement unary operator that subtracts 1
from the
expression
.
/ (
division
)
Divides
expression1
by
expression2
.
/= (
division
assignment
)
Assigns
expression1
the value of
expression1
/
expression2
.
. (
dot
)
Used to navigate movie clip hierarchies to access nested (child)
movie clips, variables, or properties.
== (
equality
)
Tests two expressions for equality.
eq (
equality
(strings)
)
Deprecated
since Flash Player 5. This operator was deprecated in
favor of the
== (equality)
operator.
Returns
true
if the string representation of
expression1
is equal to
the string representation of
expression2
,
false
otherwise.
> (
greater than
)
Compares two expressions and determines whether
expression1
is
greater than
expression2
; if it is, the operator returns
true
.
gt (
greater than
(strings)
)
Deprecated
since Flash Player 5. This operator was deprecated in
favor of the
>
(greater than) operator.
Compares the string representation of
expression1
with the string
representation of
expression2
and returns
true
if
expression1
is
greater than
expression2
,
false
otherwise.
>= (
greater than or
equal to
)
Compares two expressions and determines whether
expression1
is
greater than or equal to
expression2
(
true
) or
expression1
is less
than
expression2
(
false
).
ge (
greater than or
equal to (strings)
)
Deprecated
since Flash Player 5. This operator was deprecated in
favor of the
>=
(greater than or equal to) operator.
Returns
true
if
expression1
is greater than or equal to
expression2
,
false
otherwise.
Operator
Description
Содержание FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Страница 1: ...ActionScript 2 0 Language Reference ...
Страница 1352: ...1352 ActionScript classes ...