03.05.2013 Views

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

trace(s1 === s2); // true<br />

trace(s1 === s3); // false<br />

trace(s1 === n); // false<br />

trace(s1 === b); // false<br />

trace(s1 !== s2); // false<br />

trace(s1 !== s3); // true<br />

trace(s1 !== n); // true<br />

trace(s1 !== b); // true<br />

See also<br />

! logical NOT operator, != inequality operator, && logical AND operator, ||<br />

logical OR operator, == equality operator, === strict equality operator<br />

" string delimiter operator<br />

"text"<br />

When used before <strong>and</strong> after characters, quotation marks (") indicate that the characters have a<br />

literal value <strong>and</strong> are considered a string, not a variable, numerical value, or other <strong>ActionScript</strong><br />

element.<br />

Availability: <strong>ActionScript</strong> 1.0; Flash Player 4<br />

Oper<strong>and</strong>s<br />

text : String - A sequence of zero or more characters.<br />

Example<br />

The following example uses quotation marks (") to indicate that the value of the variable<br />

yourGuess is the literal string "Prince Edward Isl<strong>and</strong>" <strong>and</strong> not the name of a variable. The<br />

value of province is a variable, not a literal; to determine the value of province, the value of<br />

yourGuess must be located.<br />

var yourGuess:String = "Prince Edward Isl<strong>and</strong>";<br />

submit_btn.onRelease = function() { trace(yourGuess); };<br />

// displays Prince Edward Isl<strong>and</strong><br />

See also<br />

String, String function<br />

- subtraction operator<br />

(Negation) -expression<br />

(Subtraction) expression1 - expression2<br />

192 <strong>ActionScript</strong> language elements

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!