User Guide
Table Of Contents
- Contents
- Introduction
- Optimizing Content
- Working with Sound
- ActionScript Enhancements for Flash Lite 1.1
- New FSCommand and FSCommand2 commands
- Creating Content
- Testing Content
- Development Kit Examples
- Resources and Support
- Supported ActionScript
- Supported ActionScript Properties
- Warning and Error Messages

65
&& (logical AND) Operator (logical); evaluates expression1 and, if
expression1 is true, evaluates expression2. The result is
true if both expressions evaluate to true; the result is
false if either expression evaluates to false.
The following example uses the
&& operator in an if
statement. Both expressions evaluate to
true, so the final
result is
true:
x = 30;
y = 250;
if ( x > 25 && y > 200) {
z = 5;
}
else {
z = 0;
}
// z has a value of 5 after the code above has
executed.
Fully supported
?: (conditional) Operator (conditional); evaluates expression1, and
returns the value of
expression2 if expression1 is true;
otherwise, returns the value of
expression3.
The following statement assigns the value of variable
x to
variable
z because expression1 evaluates to true:
x = 5;
y = 10;
z = (x < 6) ? x : y;
// z has a value of 5
Fully supported
& (string
concatenation)
Operator; used for concatenating strings. Fully supported
add Operator; concatenates (combines) two or more strings. Fully supported
and Operator; performs a logical AND operation. If both
expressions evaluate to
true, then the entire expression
is
true.
Fully supported
break Action; appears within a loop (for, for...in, do...while
or
while). The break action skips the rest of the loop
body, stopping the
looping action, and executes the
statement following the loop statement. Use the
break
action to break out of a series of nested loops.
Fully supported
call Action; switches the context from the current script to the
script attached to the frame being called.
Fully supported
case Keyword; defines a condition for the switch action. Fully supported
chr() String function; converts ASCII code numbers to
characters.
Fully supported
continue Action; used to control code execution in loops. Fully supported
do... while Action; executes the statements inside the loop, and then
evaluates the condition of the loop for as long as the
condition is
true.
Fully supported
duplicateMovieClip Action; creates an instance of a movie clip while the
movie is playing.
Fully supported
Action name Description Support