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
Zero or more characters.
text
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
literal string
"Prince Edward Island"
is a variable, not a literal; to determine the value of
province
must be located.
yourGuess
yourGuess = "Prince Edward Island";
on(release){
province = yourGuess;
trace(province);// output: Prince Edward Island
}
102
Flash Lite Operators
and not the name of a variable. The value of
province
is the
yourGuess
, the value of
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?