Flash Lite 2 |
|||
| Flash Lite 2.x ActionScript Language Reference > ActionScript language elements > Statements | |||
Statements are language elements that perform or specify an action. For example, the return statement returns a result as a value of the function in which it executes. The if statement evaluates a condition to determine the next action that should be taken. The switch statement creates a branching structure for ActionScript statements.
|
Statement |
Description |
|---|---|
|
Appears within a loop ( |
|
|
Defines a condition for the |
|
|
Defines a custom class, which lets you instantiate objects that share methods and properties that you define. |
|
|
Jumps past all remaining statements in the innermost loop and starts the next iteration of the loop as if control had passed through to the end of the loop normally. |
|
|
Defines the default case for a |
|
|
Destroys the object reference specified by the reference parameter, and returns |
|
|
Similar to a |
|
|
Specifies that objects based on the specified class can add and access dynamic properties at runtime. |
|
|
Specifies the statements to run if the condition in the |
|
|
Evaluates a condition and specifies the statements to run if the condition in the initial |
|
|
Defines a class that is a subclass of another class; the latter is the superclass. |
|
|
Evaluates the init (initialize) expression once and then starts a looping sequence. |
|
|
Iterates over the properties of an object or elements in an array and executes the statement for each property or element. |
|
|
Comprises a set of statements that you define to perform a certain task. |
|
|
Permits implicit getting of properties associated with objects based on classes you have defined in external class files. |
|
|
Evaluates a condition to determine the next action in a SWF file. |
|
|
Specifies that a class must define all the methods declared in the interface (or interfaces) being implemented. |
|
|
Lets you access classes without specifying their fully qualified names. |
|
|
Defines an interface. |
|
|
Allows compile-time type checking of previously defined classes. |
|
|
Specifies that a variable or function is available only to the class that declares or defines it or to subclasses of that class. |
|
|
Specifies that a variable or function is available to any caller. |
|
|
Specifies the value returned by a function. |
|
|
Permits implicit setting of properties associated with objects based on classes you have defined in external class files. |
|
|
Assigns a value to a variable. |
|
|
Specifies that a variable or function is created only once per class rather than being created in every object based on that class. |
|
|
Invokes the superclass' version of a method or constructor. |
|
|
Creates a branching structure for ActionScript statements. |
|
|
Generates, or throws , an error that can be handled, or caught , by a |
|
|
Enclose a block of code in which an error can occur, and then respond to the error. |
|
|
Used to declare local or Timeline variables. |
|
|
Evaluates a condition and if the condition evaluates to |
|
|
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. |