By default, the ActionScript interpreter executes statements sequentially, from top to bottom. However, most statements can change the default program flow. The exceptions are the empty statement, set, and var, which don’t affect program flow.
The three basic types of flow control in ActionScript are conditional, loop, and call. Conditional and loop flow control are the focus of the following pages.