MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Reference Manual page 241

Actionscript reference guide
Hide thumbs Also See for FLASH MX 2004 - ACTIONSCRIPT:
Table of Contents

Advertisement

?: (conditional)
Availability
Flash Player 4.
Usage
expression1 ? expression2 : expression3
Parameters
expression1
such as
.
x < 5
,
expression2
expression3
Returns
Nothing.
Description
Operator; instructs Flash to evaluate
returns the value of
Example
The following statement assigns the value of variable
evaluates to
true
x = 5;
y = 10;
z = (x < 6) ? x: y;
trace (z);
// returns 5
/ (division)
Availability
Flash Player 4.
Usage
expression1 / expression2
Parameters
A number or a variable that evaluates to a number.
expression
Returns
Nothing.
Description
Operator (arithmetic); divides
operation is a double-precision floating-point number.
An expression that evaluates to a Boolean value, usually a comparison expression,
Values of any type.
expression1
; otherwise it returns the value of
expression2
:
expression1
, and if the value of
to variable
x
z
by
. The result of the division
expression2
is
expression1
true
.
expression3
because
expression1
/ (division)
, it
241

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents