Chapter 12. FunctionsIN THIS CHAPTER
So far we have covered some of the basics of ActionScript, including variables, statements, and arrays. Now we'll get into functions. A function is basically a reusable piece of code. After a function is created, it can be used over and over without your rewriting the code. This is very powerful, not only because it can save on file size, but also because it will make your code much more scalable and portable. This chapter covers the topics of creating and using functions, as well as using functions as methods and objects. Instead of just talking about functions, let's jump right in and create one. |