String Delimiter Operator; Subtraction Operator - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

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

Advertisement

See also
,
,
,
! logical NOT operator
!= inequality operator
&& logical AND operator
||
,
,
logical OR operator
== equality operator
=== strict equality operator

" string delimiter operator

"text"
When used before and after characters, quotation marks (") indicate that the characters have a
literal value and are considered a string, not a variable, numerical value, or other ActionScript
element.
Availability: ActionScript 1.0; Flash Lite 1.0
Operands
- A sequence of zero or more characters.
text :
String
Example
The following example uses quotation marks (") to indicate that the value of the variable
yourGuess is the literal string
and not the name of a variable. The
"Prince Edward Island"
value of
is a variable, not a literal; to determine the value of
, the value of
province
province
yourGuess must be located.
var yourGuess:String = "Prince Edward Island";
submit_btn.onRelease = function() { trace(yourGuess); };
// displays Prince Edward Island in the Output panel
// writes Prince Edward Island to the log file
See also
,
String
String function

- subtraction operator

(Negation) -expression
(Subtraction) expression1 - expression2
Used for negating or subtracting.
Usage 1: When used for negating, it reverses the sign of the numerical
. Usage 2:
expression
When used for subtracting, it performs an arithmetic subtraction on two numerical
expressions, subtracting
from
. When both expressions are
expression2
expression1
integers, the difference is an integer. When either or both expressions are floating-point
numbers, the difference is a floating-point number.
174
ActionScript language elements

Advertisement

Table of Contents
loading

Table of Contents