Using ActionScript 2.0 Components |
|
|
|
| Creating Components > Final steps in component development | |||
After you create the component and prepare it for packaging, you can add an icon and a tool tip. To make sure you completed all the necessary steps, you can also refer to the Component development checklist.
This section contains the following topics:
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:The image must measure 18 pixels square, and you must save it in PNG format. It must be 8-bit with alpha transparency, and the upper left pixel must be transparent to support masking.
[IconFile("component_name.png")]
Tooltips appear when a user rolls the mouse over your component name or icon in the Components panel of the Flash authoring environment.
You define a tooltip in the Component Definition dialog box. You can access this dialog box from the Library options menu (Windows: Right-click, Mac: control-click) of the component's FLA file.
To add a tooltip in the Component Definition dialog box: The Library options menu is on the right side of the Library title bar, and appears as an icon of three lines and a down triangle.
The Tool tip text box becomes editable.
|
|
|
|