![MACROMEDIA Flash Lite 2 Скачать руководство пользователя страница 165](http://html1.mh-extra.com/html/macromedia/flash-lite-2/flash-lite-2_reference_687553165.webp)
Operators
165
Availability:
ActionScript 1.0; Flash Lite 1.0 - In Flash 4 files, the
%
operator is expanded in
the SWF file as
x - int(x/y) * y
and may not be as fast or as accurate in later versions of
Flash Player.
Operands
expression1 :
Number
- A number or expression that evaluates to a number.
expression2 :
Number
- A number or expression that evaluates to a number.
Returns
Number
- The result of the arithmetic operation.
Example
The following example assigns the value
4
to the variable
x
:
var x:Number = 14;
var y:Number = 5;
trace(x %= y); // output: 4
See also
% modulo operator
* multiplication operator
expression1
*
expression2
Multiplies two numerical expressions. If both expressions are integers, the product is an
integer. If either or both expressions are floating-point numbers, the product is a floating-
point number.
Availability:
ActionScript 1.0; Flash Lite 1.0
Operands
expression1 :
Number
- A number or expression that evaluates to a number.
expression2 :
Number
- A number or expression that evaluates to a number.
Returns
Number
- An integer or floating-point number.
Example
Usage 1: The following statement multiplies the integers 2 and 3:
trace(2*3); // output: 6
Содержание Flash Lite 2
Страница 1: ...Flash Lite 2 x ActionScript Language Reference...
Страница 22: ...22 Contents...
Страница 244: ...244 ActionScript language elements...
Страница 760: ...760 ActionScript classes...