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

Create successful ePaper yourself

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

Operator Description<br />

" (string delimiter) When used before <strong>and</strong> after characters, quotation marks (") indicate<br />

that the characters have a literal value <strong>and</strong> are considered a string, not<br />

a variable, numerical value, or other ActionScript element.<br />

- (subtraction) Used for negating or subtracting.<br />

-= (subtraction<br />

assignment)<br />

+ addition operator<br />

expression1 + expression2<br />

Adds numeric expressions or concatenates (combines) strings. If one expression is a string, all<br />

other expressions are converted to strings <strong>and</strong> concatenated. If both expressions are integers,<br />

the sum is an integer; if either or both expressions are floating-point numbers, the sum is a<br />

floating-point number.<br />

Note: Flash Lite 2.0 supports the addition (+) operator for adding numeric expressions <strong>and</strong><br />

concatenating strings. Flash Lite 1.x only supports the addition (+) operator for adding<br />

numeric expressions (such as var1 = 1 + 2 // output: 3). For Flash Lite 1.x, you must<br />

use the add operator to concatenate strings.<br />

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

expression1 - A number or string.<br />

expression2 - A number or string.<br />

Returns<br />

Object - A string, integer, or floating-point number.<br />

Example<br />

Usage 1: The following example concatenates two strings <strong>and</strong> displays the result in the<br />

Output panel.<br />

110 ActionScript language elements<br />

Assigns expression1 the value of expression1 - expression2.<br />

: (type) Used for strict data typing; this operator specifies the variable type,<br />

function return type, or function parameter type.<br />

typeof The typeof operator evaluate the expression <strong>and</strong> returns a string<br />

specifying whether the expression is a String, MovieClip, Object,<br />

Function, Number, or Boolean value.<br />

void The void operator evaluates an expression <strong>and</strong> then discards its<br />

value, returning undefined.

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

Saved successfully!

Ooh no, something went wrong!