Chapter 6. Functions and Methods

Understanding functions is important when you’re writing ActionScript, creating classes, and using methods. There are several different kinds of functions that you’ll work with. In this chapter, you learn about functions and methods: how to use them in your applications when you use built-in classes, and how to write them. In Chapter 7, “Classes,” you’ll create custom classes in which you’ll write functions regularly. You’ll also learn how to write functions in ActionScript class files.

You can use functions in your code to add interactivity, animations, and other effects to your applications. This chapter covers the kinds of functions that you can write in your Flash applications. For information on what functions ...

Get Learning ActionScript 2.0 for Macromedia® Flash® 8 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.