ActionScript 2.0 Components Language Reference |
|
|
|
| UIScrollBar Component > Customizing the UIScrollBar component > Using skins with the UIScrollBar component | |||
The UIScrollBar component uses 13 skins for the track, scroll box (thumb), and buttons. To customize these skin elements, edit the symbols in the Flash UI Components 2/Themes/MMDefault/ScrollBar Assets/States folder. For more information, see About skinning components in Using ActionScript 2.0 Components.
Both horizontal and vertical scroll bars use the same vertical skins, and when displaying a horizontal scroll bar the UIScrollBar component rotates the skins as appropriate.
The UIScrollBar component supports the following skin properties.
|
Property |
Description |
|---|---|
upArrowUpName
|
The up (normal) state of the up and left buttons. The default value is |
upArrowOverName
|
The rollover state of the up and left buttons. The default value is |
upArrowDownName
|
The pressed state of the up and left buttons. The default value is |
downArrowUpName
|
The up (normal) state of the down and right buttons. The default value is |
downArrowOverName
|
The rollover state of the down and right buttons. The default value is |
downArrowDownName
|
The pressed state of the down and right buttons. The default value is |
scrollTrackName
|
The symbol used for the scroll bar's track (background). The default value is |
scrollTrackOverName
|
The symbol used for the scroll track (background) when rolled over. The default value is |
scrollTrackDownName
|
The symbol used for the scroll track (background) when pressed. The default value is |
thumbTopName
|
The top and left caps of the scroll box (thumb). The default value is |
thumbMiddleName
|
The middle (expandable) part of the thumb. The default value is |
thumbBottomName
|
The bottom and right caps of the thumb. The default value is |
thumbGripName
|
The grip displayed in front of the thumb. The default value is |
The following example demonstrates how to put a thin blank line in the middle of the scroll track.
To create movie clip symbols for UIScrollBar skins:This file is located in the application-level configuration folder. For the exact location on your operating system, see About themes in Using ActionScript 2.0 Components.
For example, open the ScrollTrack symbol.
For example, draw a black rectangle in the middle of the track using a 1 x 4 rectangle at (8,0).
For example, draw the same line on the ScrollTrackDisabled symbol.
|
|
|
|