FALSE
Usage
-- Lingo syntax
FALSE
// JavaScript syntax
false
Description
Constant; applies to an expression that is logically
number value,
FALSE
Example
This statement turns off the
-- Lingo syntax
_sound.soundEnabled = FALSE
// JavaScript syntax
_sound.soundEnabled = false;
See also
if, not,
TRUE
PI
Usage
-- Lingo syntax
PI
// JavaScript syntax
Math.PI
Description
Constant; returns the value of pi ( ), the ratio of a circle's circumference to its diameter, as a
floating-point number. The value is rounded to the number of decimal places set by the
floatPrecision
Example
This statement uses the
-- Lingo syntax
vRadius = 3
vArea = PI*power(vRadius, 2)
trace(vArea) -- results in 28.2743
// JavaScript syntax
var vRadius = 3;
vArea = Math.PI*Math.pow(vRadius, 2);
trace(vArea); // results in 28.274333882308138
154
Chapter 9: Constants
has the numerical value of 0. Conversely, 0 is treated as
soundEnabled
property.
constant as part of an equation for calculating the area of a circle:
PI
, such as 2 > 3. When treated as a
FALSE
property by setting it to
.
FALSE
:
FALSE
Need help?
Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?
Questions and answers