Adding an icon

You can add an icon that represents your component in the Components panel of the Flash authoring environment.

To add an icon for your component:

  1. Create a new image.

    The image must measure 18 pixels square and be saved in PNG format. It must be 8-bit with alpha transparency, and the upper left pixel must be transparent to support masking.

  2. Add the following definition to your component's ActionScript class file before the class definition:
    [IconFile("component_name.png")]
    
  3. Add the image to the same directory as the FLA file. When you export the SWC file, Flash includes the image at the root level of the archive.