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:

  1. Create a new FLA file.
  2. Drag the ProgressBar component from the Components panel to the Stage and give it an instance name of myPb.
  3. On Frame 1 of the main Timeline, enter the following code in the Actions Panel:
    myPb.width = 300;
    myPb.height = 30;
    
    myPb.setStyle("barPadding", 3);
    
  4. Select Control > Test Movie.

For information on setting skin styles, see About Skins.