July 2009
Intermediate to advanced
384 pages
9h 22m
English
A function is nothing more than a reusable block of code. Functions are primarily designed to let you save development time. Rather than rewrite and retest similar code over and over, you can encapsulate the code into a function and then simply call it whenever you need its capabilities.
ActionScript includes a set of global functions to perform certain common tasks. Global functions are written into the core ActionScript code and can be accessed directly in your code.
One global function — trace — is covered in Chapter 2. Another common global function is stop, which is discussed in Chapter 8.
Most often, you will need some functionality that is specific to your project. In these cases, you will need ...
Read now
Unlock full access