If you're getting fancy and writing some complicated Flash, you may find that the objects, methods, and properties that Flash provides don't quite meet your needs. Fortunately, Flash provides a way for you to create your own objects, properties, and methods using constructor functions.
A function is a set of instructions that's executed only at certain times. We'll be using them in later chapters. We used functions when we created HairBand earlier in this chapter. Functions can look (and act) a lot like methods. You'll see some of this overlap later as well.