Saturday, December 8, 2012

Defining your own functions

There are two ways to define a function in ActionScript 3.0. You can use a function statement or a function literal. The choice between the two techniques depends on whether you prefer a more static or dynamic programming style. The use of function statements is more conducive to static, or strict mode, programming, while the use of function literals is more suitable for dynamic, or standard mode, programming.
Programming Actionscript 3. Powered by Blogger.