Using SWC files

This section describes how to create and import SWC files. You should give instructions for importing SWC files to your component users.

Creating SWC files

Flash MX 2004 and Flash MX Professional 2004 provide the ability to create SWC files by exporting a movie clip as a SWC file. When creating a SWC file, Flash reports compile-time errors as if you were testing a Flash application.

To export a SWC file:

  1. Select an item in the Flash library.
  2. Right-click (Windows) or Control-click (Macintosh) the item and select Export SWC File.
  3. Save the SWC file.

Importing component SWC files into Flash

When you distribute your components to other developers, you can include the following instructions so that they can install and use them immediately.

To use a SWC file in the Flash authoring environment:

  1. Close the Flash authoring environment.
  2. Copy the SWC file into the flash_root/en/First Run/Components directory.
  3. Start the Flash authoring environment or reload the Components panel.

    The component's icon should appear in the Components panel.