Addition 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

Operator
{}
(object
initializer)
() (parentheses)
===
(strict
equality)
!==
(strict
inequality)
"
(string
delimiter)
- (subtraction)
-=
(subtraction
assignment)
: (type)
typeof
void

+ addition operator

expression1 + expression2
Adds numeric expressions or concatenates (combines) strings. If one expression is a string, all
other expressions are converted to strings and concatenated. If both expressions are integers,
the sum is an integer; if either or both expressions are floating-point numbers, the sum is a
floating-point number.
Description
Creates a new object and initializes it with the specified
name and value property pairs.
Performs a grouping operation on one or more
parameters, performs sequential evaluation of
expressions, or surrounds one or more parameters and
passes them as parameters to a function outside the
parentheses.
Tests two expressions for equality; the strict equality
(=== )operator performs in the same way as the equality
(== ) operator, except that data types are not
converted.
Tests for the exact opposite of the strict equality ( === )
operator.
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.
Used for negating or subtracting.
Assigns expression1 the value of expression1 -
expression2.
Used for strict data typing; this operator specifies the
variable type, function return type, or function
parameter type.
The typeof operator evaluate the expression and
returns a string specifying whether the expression is a
String, MovieClip, Object, Function, Number,
or Boolean value.
The void operator evaluates an expression and then
discards its value, returning undefined
Operators
117

Advertisement

Table of Contents
loading

Table of Contents