Using ActionScript 3.0 Components |
|
|
|
| Customizing the UI Components > Customizing the List > Using skins with the List | |||
The List component uses the following skins to represent its visual states:

List skins
For more information about skinning the ScrollBar, see Customizing the UIScrollBar. For information on skinning the Focus Rect skin, see Customizing the TextArea
|
NOTE |
Changing the ScrollBar skin in one component will change it for all other components that use the ScrollBar. |
Double-click the Cell Renderer skin to open a second palette of skins for the different states of a List cell.

List Cell Renderer skins
You can change the appearance of the List's cells by editing these skins. The following procedure changes the color of the Up skin to change the List's appearance in its normal inactive state.
To change the color of the List's Cell Renderer Up_Skin:
aList.setStyle("contentPadding", 5);
aList.setSize(145, 200);
aList.addItem({label:"1956 Chevy (Cherry Red)", data:35000});
aList.addItem({label:"1966 Mustang (Classic)", data:27000});
aList.addItem({label:"1976 Volvo (Xcllnt Cond)", data:17000});
aList.rowCount = aList.length;
The List should display as it does in the following illustration:

The framing results from setting the contentPadding style.
|
|
|
|