03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Oper<strong>and</strong>s<br />

expression1 : Number - A number or expression that evaluates to a number.<br />

expression2 : Number - A number or expression that evaluates to a number.<br />

Returns<br />

Number - The result of the arithmetic operation.<br />

Example<br />

The following example assigns the value 4 to the variable x:<br />

var x:Number = 14;<br />

var y:Number = 5;<br />

trace(x %= y); // output: 4<br />

See also<br />

% modulo operator<br />

* multiplication operator<br />

expression1 * expression2<br />

Multiplies two numerical expressions. If both expressions are integers, the product is an<br />

integer. If either or both expressions are floating-point numbers, the product is a floatingpoint<br />

number.<br />

Oper<strong>and</strong>s<br />

expression1 : Number - A number or expression that evaluates to a number.<br />

expression2 : Number - A number or expression that evaluates to a number.<br />

Returns<br />

Number - An integer or floating-point number.<br />

Example<br />

Usage 1: The following statement multiplies the integers 2 <strong>and</strong> 3:<br />

trace(2*3); // output: 6<br />

The result, 6, is an integer. Usage 2: This statement multiplies the floating-point numbers 2.0<br />

<strong>and</strong> 3.1416:<br />

trace(2.0 * 3.1416); // output: 6.2832<br />

The result, 6.2832, is a floating-point number.<br />

Operators 153

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!