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.

Note: Flash Lite 2.0 also deprecates the add operator in favor of the addition (+) operator.<br />

Concatenates two or more strings. The add (+) operator replaces the Flash 4 & operator; Flash<br />

Player 4 files that use the & operator are automatically converted to use the add (+) operator<br />

for string concatenation when brought into the Flash 5 or later authoring environment. You<br />

must use the add (+) operator to concatenate strings if you are creating content for Flash<br />

Player 4 or earlier versions of the Flash Player.<br />

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

string1 : String - A string.<br />

string2 : String - A string.<br />

Returns<br />

String - The concatenated string.<br />

See also<br />

+ addition operator<br />

?: conditional operator<br />

expression1 ? expression2 : expression3<br />

Instructs Flash to evaluate expression1, <strong>and</strong> if the value of expression1 is true, it returns<br />

the value of expression2; otherwise it returns the value of expression3.<br />

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

expression1 : Object - expression1 An expression that evaluates to a Boolean value;<br />

usually a comparison expression, such as x < 5.<br />

expression2 : Object - Values of any type.<br />

expression3 : Object - Values of any type.<br />

Returns<br />

Object - The value of expression2 or expression3.<br />

Example<br />

The following statement assigns the value of variable x to variable z because expression1<br />

evaluates to true:<br />

var x:Number = 5;<br />

var y:Number = 10;<br />

Operators 131

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

Saved successfully!

Ooh no, something went wrong!