(Divide) - MACROMEDIA FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE Reference

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

Advertisement

Description
Operator (arithmetic); a pre-decrement and post-decrement unary operator that subtracts 1
from
. The pre-decrement form of the operator (
expression
and returns the result as a number. The post-decrement form of the operator
expression
(
) subtracts 1 from
expression––
(the value before the subtraction).
Example
The following example shows the pre-decrement form of the operator, decrementing
to 2 (
aWidth - 1 = 2
aWidth = 3;
bWidth = --aWidth;
// The bWidth value is equal to 2.
The next example shows the post-decrement form of the operator decrementing
(
) and returning the original value of
aWidth - 1 = 2
aWidth = 3;
bWidth = aWidth--;
// The bWidth value is equal to 3.

/ (divide)

Availability
Flash Lite 1.0.
Usage
expression1 / expression2
Operands
expression1, expression2
Description
Operator (arithmetic); divides
operation is a double-precision floating-point number.
Example
The following statement divides the floating-point number 22.0 by 7.0 and then shows the
result in the Output panel:
trace(22.0 / 7.0);
The result is 3.1429, which is a floating-point number.
expression
) and returning the result as
Numbers or expressions that evaluate to numbers.
expression1
––expression
and returns the initial value of
:
bWidth
as the result
aWidth
by
. The result of the division
expression2
) subtracts 1 from
expression
aWidth
to 2
aWidth
:
bWidth
/ (divide)
87

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents