Using ActionScript 3.0 Components |
|
|
|
| Customizing the UI Components > Customizing the ScrollPane > Using styles with the ScrollPane | |||
The style properties of the ScrollPane component specify values for its skins and padding for its layout when the component is drawn. The various skin styles allow you to specify different classes to use for the component's skins. For more information on using the skin styles, see About Skins.
To set the contentPadding style for a ScrollPane:source parameter: http://www.helpexamples.com/flash/images/image1.jpg.
mySp.setStyle("contentPadding", 5);
Note that the padding is applied between the component's border and its content, on the outside of the scroll bars.
|
|
|
|