Creating Components > Creating a custom interface for a component > Setting the path to the custom interface movie |  |

Setting the path to the custom interface movie

After you have created a custom interface movie, you use the Component Definition dialog box to set a path to it.

To set the path to a custom interface movie:

1 | Open the component document.
2 | To create the path to the custom interface movie, select the component in the Library panel and choose Component Definition from the Library options menu.
3 | In the Component Definition dialog box, click the Set button to the right of the Custom UI text box.
4 | In the Custom UI dialog box, select Custom UI with SWF File Embedded in FLA File to embed the custom interface movie in the component document. This links the custom interface movie to the component FLA file.
| Note: Flash 5 does not support embedded custom interface movies. If you plan to save your component as a Flash 5 SWF movie, you should link the custom interface movie as an external file.
5 | Select one of the following display options:
| Display in Property Inspector.
| Display in Component Parameters Panel. Select this option if the custom interface for your component is too large to easily be displayed in the Property inspector.
| Note: Flash 5 does not support the Property inspector for components. If you save your component in Flash 5 format and open it in Flash 5, the custom interface is displayed in the Component Parameters panel.
6 | Enter the path for the custom interface SWF movie in the text box, or click Browse and navigate to the custom interface movie.
7 | Click OK to close the Custom UI dialog box, and click OK again to close the Component Definition dialog box.
8 | To view the custom user interface, select the component on the Stage. Do one of the following:
| Open the Property inspector. If the interface is not visible, click the Parameters tab at the bottom of the Property inspector. If you selected Display in Property inspector in step 5, the custom interface appears in the Property inspector.
| Open the Component Parameters panel.
9 | Save the file and close it.