Exporting a SWC for a completed component
You can export components as SWC files that contain all the ActionScript, SWF files, and other
optional files needed to use the component.
To export a SWC file for a completed component:
Select the component movie clip in the Flash library.
1.
Select Export SWC File from the Library options menu.
2.
Save the SWC file.
3.
Testing a SWC during development
At different stages of development, it's a good idea to export the component as a SWC and test it
in an application. If you export the SWC to the Components folder in your user-level
Configuration folder, you can reload the Components panel without quitting and restarting
Flash.
To test a SWC during development:
Select the component movie clip in the Flash library.
1.
Select Export SWC File from the Library options menu.
2.
Browse to the Components folder in your user-level configuration folder.
3.
Configuration/Components
Note: For information about the location of the folder, see "Configuration folders installed with
Flash" in Using Flash.
Save the SWC file.
4.
Choose Reload from the Components panel's options menu.
5.
The component appears in the Component panel.
Drag the component from the Component panel into a document.
6.
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 import a SWC file:
Copy the SWC file into the First Run/Components directory.
1.
Restart Flash.
2.
The component's icon should appear in the Components panel.
Adding the finishing touches
After you create the component and prepare it for packaging, you can add an icon and a tool tip.
You can also refer to the "Component Development Checklist" to make sure you completed all
the necessary steps.
Adding the finishing touches
955
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?
Questions and answers