Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Every language supports certain characteristics, shortcuts, and nuances. In this section we’ll briefly go over a collection of tidbits you’ll want to know about when working with ActionScript, starting with curly braces.
When writing code blocks for scripts, such as functions, loops, switches, and if statements, you use curly braces to indicate to Flex all the code that falls under the switch control of those statements—unless the instruction after the statement comprises only one line.