Adding components using the Components panel

After you add a component to a document using the Components panel, you can add additional instances of the component to the document by dragging the component from the Library panel to the Stage. You can set properties for additional instances in the Parameters tab of the Property inspector or in the Component Parameters panel.

To add a component to a Flash document using the Components panel:

  1. Select Window > Components.
  2. Do one of the following:
    • Drag a component from the Components panel to the Stage.
    • Double-click a component in the Components panel.
  3. If the component is a FLA (all installed v2 components are SWCs) and if you have edited skins for another instance of the same component, or for a component that shares skins with the component you are adding, do one of the following:
    • Select Don't Replace Existing Items to preserve the edited skins and apply the edited skins to the new component.
    • Select Replace Existing Items to replace all the skins with default skins. The new component and all previous versions of the component, or of components that share its skins, will use the default skins.
  4. Select the component on the Stage.
  5. Select Window > Properties.
  6. In the Property inspector, enter an instance name for the component instance.
  7. Click the Parameters tab and specify parameters for the instance.

    For more information, see Setting component parameters.

  8. Change the size of the component as desired.

    For more information on sizing specific component types, see the individual component entries in Components Dictionary.

  9. Change the color and text formatting of a component as desired, by doing one or more of the following:
    • Set or change a specific style property value for a component instance using the setStyle() method available to all components. For more information, see UIObject.setStyle().
    • Edit multiple properties in the _global style declaration assigned to all v2 components.
    • If desired, create a custom style declaration for specific component instances.

      For more information, see Using styles to customize component color and text.

  10. Customize the appearance of the component if desired, by doing one of the following: