03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

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

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

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

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<br />

ActionScript element.<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> in the Output panel<br />

// writes Prince Edward Isl<strong>and</strong> to the log file<br />

See also<br />

String, String function<br />

Operators 161

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

Saved successfully!

Ooh no, something went wrong!