ActionScript 2.0 Components Language Reference |
|
|
|
| Window component > Customizing the Window component > Using skins with the Window component | |||
The Window component uses skins for its title background and close button, and a RectBorder instance for the border. The Window skins are found in the Flash UI Components 2/Themes/ MMDefault/Window Assets folder in each of the theme files. For more information about skinning, see About skinning components in Using ActionScript 2.0 Components. For more information about the RectBorder class and using it to customize borders, see RectBorder class.
The title background skin is always displayed. The height of the background is determined by the skin graphics. The width of the skin is set by the Window component according to the Window instance's size. The close skins are displayed when the closeButton property is set to true and when a change state results from user interaction.
A Window component uses the following skin properties:
|
Property |
Description |
|---|---|
skinTitleBackground
|
The title bar. The default value is |
skinCloseUp
|
The close button. The default value is |
skinCloseDown
|
The close button in its down state. The default value is |
skinCloseDisabled
|
The close button in its disabled state. The default value is |
skinCloseOver
|
The close button in its over state. The default value is |
The following example demonstrates how to create a new movie clip symbol to use as the title background.
To set the title of a Window component to a custom movie clip symbol:TitleBackground.The identifier is automatically filled out with TitleBackground.
mx.skins.SkinElement.
SkinElement is a simple class that can be used for all skin elements that don't provide their own ActionScript implementation. It provides movement and sizing functionality required by the component framework.
The Window component sets the proper width of the skin as needed but it uses the existing height as the height of the title.
|
|
|
|