Section 12.2. Adding Components


12.2. Adding Components

Adding 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:

  1. Select Window Components .

    The Components panel appears.

  2. In the Components panel, click to a select the component you want and then drag it to the Stage .

    As Figure 12-20 shows, Flash displays an instance of the component on the Stage. It also places a copy of the component in the Library (Window Library).


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).
Bottom: When you drag a component from the Component panel to the Stage, Flash puts a copy of the component in the Library. You can tell the items you see here are components (as opposed to symbols or graphic files you can edit on the Stage) because Flash designates them as Compiled Clips.




Flash 8
Flash Fox and Bono Bear (Chimps) (Chimps Series)
ISBN: 1901737438
EAN: 2147483647
Year: 2006
Pages: 126
Authors: Tessa Moore

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net