Multiplication Operator - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

Availability: ActionScript 1.0; Flash Lite 1.0 - In Flash 4 files, the
the SWF file as
x - int(x/y) * y
Flash Player.
Operands
expression1 :
Number
expression2 :
Number
Returns
- The result of the arithmetic operation.
Number
Example
The following example assigns the value
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
expression2 :
Number
Returns
- An integer or floating-point number.
Number
Example
Usage 1: The following statement multiplies the integers 2 and 3:
trace(2*3); // output: 6
and may not be as fast or as accurate in later versions of
- A number or expression that evaluates to a number.
- A number or expression that evaluates to a number.
to the variable
4
- A number or expression that evaluates to a number.
- A number or expression that evaluates to a number.
operator is expanded in
%
:
x
Operators
165

Advertisement

Table of Contents
loading

Table of Contents