102
Flash Lite Operators
Example
Usage 1: The following statements show the use of parentheses to control the order in which
expressions are executed (the value of each expression appears in the Output panel):
trace((2 + 3) * (4 + 5)); // displays 45
trace(2 + (3 * (4 + 5))); // // displays 29
trace(2 + (3 * 4) + 5); // displays 19
Usage 1: The following statements show the use of parentheses to control the order in which
expressions are executed (the value of each expression is written to the log file):
trace((2 + 3) * (4 + 5)); // writes 45
trace(2 + (3 * (4 + 5))); // writes 29
trace(2 + (3 * 4) + 5); // writes 19
" " (string delimiter)
Availability
Flash Lite 1.0.
Usage
"
text
"
Operands
text
Zero or more characters.
Description
String delimiter; when used before and after a sequence of zero or more characters, quotation
marks indicate that the characters have a literal value and are considered a
string
; they are not
a variable, numeric value, or other ActionScript element.
Example
This example uses quotation marks to indicate that the value of the variable
yourGuess
is the
literal string
"Prince Edward Island"
and not the name of a variable. The value of
province
is a variable, not a literal; to determine the value of
province
, the value of
yourGuess
must be located.
yourGuess = "Prince Edward Island";
on(release){
province = yourGuess;
trace(province);// output: Prince Edward Island
}
Summary of Contents for FLASH 8-FLASH
Page 1: ...Flash Lite 1 x ActionScript Language Reference...
Page 6: ...6 Contents...
Page 46: ...46 Flash Lite Global Functions...
Page 62: ...62 Flash Lite Properties...
Page 76: ...76 Flash Lite Statements...
Page 110: ...110 Flash Lite Operators...
Page 162: ...162 Index...