Using ActionScript 3.0 Components |
|
|
|
| Customizing the UI Components > Customizing the ProgressBar > Using styles with the ProgressBar | |||
You can set style properties to change the appearance of a ProgressBar instance. The ProgressBar's styles specify values for its skin and padding when the component is drawn. The following example enlarges the size of a ProgressBar instance and sets its barPadding style.
To set the padding styles for a ProgressBar instance:
myPb.width = 300;
myPb.height = 30;
myPb.setStyle("barPadding", 3);
For information on setting skin styles, see About Skins.
|
|
|
|