ActionScript 2.0 Components Language Reference |
|
|
|
| ProgressBar component > Customizing the ProgressBar component > Using skins with the ProgressBar component | |||
The ProgressBar component uses skins to represent the progress bar track, the completed bar, and an indeterminate bar. To skin the ProgressBar component while authoring, modify symbols in the Flash UI Components 2/Themes/MMDefault/ProgressBar Elements folder. For more information, see About skinning components in Using ActionScript 2.0 Components.
The track and bar graphics are each made up of three skins corresponding to the left and right caps and the middle. The caps are used "as is," and the middle is resized horizontally to fit the width of the ProgressBar instance.
The indeterminate bar is used when the ProgressBar instance's indeterminate property is set to true. The skin is resized horizontally to fit the width of the progress bar.
A ProgressBar component supports the following skin properties:
|
Property |
Description |
|---|---|
progTrackMiddleName
|
The expandable middle of the track. The default value is |
progTrackLeftName
|
The fixed-size left cap. The default value is |
progTrackRightName
|
The fixed-size right cap. The default value is |
progBarMiddleName
|
The expandable middle bar graphic. The default value is |
progBarLeftName
|
The fixed-size left bar cap. The default value is |
progBarRightName
|
The fixed-size right bar cap. The default value is |
progIndBarName
|
The indeterminate bar graphic. The default value is |
To create movie clip symbols for ProgressBar 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 ProgIndBar symbol.
For example, flip the track horizontally.
To view the skins modified in this example, use ActionScript to set the indeterminate property to true.
|
|
|
|