78
Flash Lite Operators
–– (decrement)
Subtracts 1 from
expression
. The pre-decrement form of the operator
(
––expression
) subtracts 1 from
expression
and returns the result as a
number. The post-decrement form of the operator
(
expression––
)
subtracts 1 from
expression
and returns the initial value of
expression
(the value before the subtraction).
/ (divide)
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.
++ (increment)
Adds 1 to
expression
. The expression can be a variable, element in an
array, or property of an object. The pre-increment form of the
operator (
++expression
) adds 1 to
expression
and returns the result as
a number. The post-increment form of the operator (
exp+
)
adds 1 to
expression
and returns the initial value of
expression
(the
value before the addition).
&& (logical AND)
Evaluates
expression1
(the expression on the left side of the operator)
and returns
false
if the expression evaluates to
false
. If
expression1
evaluates to
true
,
expression2
(the expression on the right side of the
operator) is evaluated. If
expression2
evaluates to
true
, the final result
is
true
; otherwise, it is
false
.
! (logical NOT)
Inverts the Boolean value of a variable or expression. If
expression
is a
variable with the absolute or converted value of
true
, the value of
!
expression
is
false.
If the expression
x && y
evaluates to
false
, the
expression
!(x && y)
evaluates to
true
.
|| (logical OR)
Evaluates
expression1
and
expression2
. The result is
true
if either or
both expressions evaluate to
true
; the result is
false
only if both
expressions evaluate to
false
. You can use the logical OR operator
with any number of operands; if any operand evaluates to
true
, the
result is
true
.
% (modulo)
Calculates the remainder of
expression1
divided by
expression2
. If an
expression
operand is non-numeric, the modulo operator attempts to
convert it to a number.
%= (modulo
assignment)
Assigns
expression1
the value of
expression1 % expression2
.
*= (multiplication
assignment)
Assigns
expression1
the value of
expression1 * expression2
.
* (multiply)
Multiples two numeric expressions.
+ (numeric add)
Adds numeric expressions.
Operator
Description
Содержание FLASH 8-FLASH
Страница 1: ...Flash Lite 1 x ActionScript Language Reference...
Страница 6: ...6 Contents...
Страница 46: ...46 Flash Lite Global Functions...
Страница 62: ...62 Flash Lite Properties...
Страница 76: ...76 Flash Lite Statements...
Страница 110: ...110 Flash Lite Operators...
Страница 162: ...162 Index...