• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Statements

A statement in ActionScript can be likened to a sentence describing a set of instructions to be performed (including how and in what order). Like a sentence, a statement contains words (usually variable names, operators, and expressions) to provide meaning, and punctuation to denote structure. We'll explain this structure as we go along.

Controlling the Flow

Statements control the way actions are executed in a script. Normally, lines in an ActionScript are executed one after another from top to bottom. However, statements can alter this flow so that actions are executed based on varying conditions. Think of a flowchart as a visual representation of an ActionScript statement. The following examines some of the types of statements ActionScript allows you to use.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint