180
ActionScript language elements
break statement
break
Appears within a loop (
for
,
for..in
,
do..while
or
while
) or within a block of statements
associated with a particular case within a
switch
statement. When used in a loop, the
break
statement instructs Flash to skip the rest of the loop body, stop the looping action, and
execute the statement following the loop statement. When used in a
switch
, the
break
statement instructs Flash to skip the rest of the statements in that
case
block and jump to the
first statement following the enclosing
switch
statement.
In nested loops, the
break
statement only skips the rest of the immediate loop and does not
break out of the entire series of nested loops. For breaking out of an entire series of nested
loops, see
try..catch..finally
.
Availability:
ActionScript 1.0; Flash Lite 1.0
public
Specifies that a variable or function is available to any caller.
return
Specifies the value returned by a function.
set
Permits implicit setting of properties associated with objects based
on classes you have defined in external class files.
set variable
Assigns a value to a variable.
static
Specifies that a variable or function is created only once per class
rather than being created in every object based on that class.
super
Invokes the superclass' version of a method or constructor.
switch
Creates a branching structure for ActionScript statements.
throw
Generates, or
throws
, an error that can be handled, or
caught
, by a
catch{}
code block.
try..catch..finally
Enclose a block of code in which an error can occur, and then
respond to the error.
var
Used to declare local or Timeline variables.
while
Evaluates a condition and if the condition evaluates to
true
, runs a
statement or series of statements before looping back to evaluate the
condition again.
with
Lets you specify an object (such as a movie clip) with the
object
parameter and evaluate expressions and actions inside that object
with the
statement(s)
parameter.
Statement
Description
Summary of Contents for FLASHLITE2 ACTIONSCRIPT-LANGUAGE
Page 1: ...Flash Lite 2 x ActionScript Language Reference...
Page 22: ...22 Contents...
Page 244: ...244 ActionScript language elements...
Page 760: ...760 ActionScript classes...