Components: A Scripting Primer
Because the focus of this book is ActionScript, our discussion in this lesson largely centers on how to work with and use Flash components from a scripting standpoint. For a more thorough overview of components, consult the documentation that comes with Flash.A component is usually nothing more than a movie clip with some built-in functionality. Components can be customized using ActionScript in two ways:You add components to a project manually by dragging them onto the stage within Flash's authoring environment, via the Property Inspector or Component Inspector.You add components to a project dynamically using ActionScript while the movie plays.
When a component is added by either technique, you're actually placing an instance of that component type/class into your project. For example, if you drag and drop a CheckBox component onto the stage in the authoring environment, that object is considered to be a CheckBox component instance. As when using other object instances, you assign names to component instances; the instance name can be used in your scripts to communicate with that component instance.

In the exercises in this lesson, you'll implement each of these types of interactivity in the creation of a URL manager, which is used as a mini-database for Web, FTP, and email addresses. The result will be a highly interactive application, requiring relatively little scripting to make it work.