12.2. Adding ComponentsAdding a component to your animation is the first step in using that component. As you see in the following sections, adding an instance of a component to the Stage is similar to adding an instance of a symbol: all you have to do is drag and drop. But instead of dragging a component from the Library panel, you drag components from the Component panel. Note: After you add the component, you still need to customize it anddepending on the component you chooseadd the ActionScript code necessary to tie the component to your back end. (See "Customizing Components" on Section 12.3.) To add a component to your animation:
Tip: Flash gives you another way to add a component: In the Components panel, double-click the component. When you do, Flash immediately places an instance of the component on the center of your Stage. Figure 12-20. Top: Some components, like the DateChooser, TextInput, and CheckBox components shown here, look the same way on the Stage as they do in your finished animation. Other componentsthe Accordion component, for examplelook quite a bit different. In either case, before you can use a component, you need to customize it (see below). |