Interfaces

In object-oriented programming (OOP), an interface is a document that lets you declare (but not define) the methods that must appear within a class. When you work in teams of developers, or build larger applications in Flash, interfaces can be very beneficial during development. Interfaces allow developers to easily identify the base methods in ActionScript classes. These methods must be implemented when developers use each interface.

This chapter walks you through a few sample interfaces, and by the end of the chapter you are able to build your own interface files. If you are not familiar with building classes, make sure that you read Classes before you try the tutorials and examples in this chapter.

For more information on working with interfaces, see the following topics:

About interfaces
Creating interfaces as data types
Understanding inheritance and interfaces
Example: Using interfaces
Example: Creating a complex interface

Flash CS3