O'Reilly logo

ActionScript 3.0: Visual QuickStart Guide by Derrick Ypenburg

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3. Working with Functions and Methods

Functions and methods in ActionScript, for the most part, are one and the same. They are containers of functionality that execute only when called. Functions and methods can calculate, process, and return data, or they can perform certain tasks. Just like a variable, a function can be written (or invoked) once and can be called (or reused) many times. A single function or method can perform the same tasks but with different values (or arguments) that are passed to it, yielding different results each time.

This chapter addresses the key differences between methods and functions. It begins by discussing methods of classes and providing you with an opportunity to work with them. You’ll then have the chance ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required