User Guide
1018 ProgressBar component
See also
EventDispatcher.addEventListener()
ProgressBar.setProgress()
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
progressBarInstance.setProgress(completed, total)
Parameters
completed A number indicating the amount of progress that has been made. You can use
the
ProgressBar.label and ProgressBar.conversion properties to display the number in
percentage form or any units you choose, depending on the source of the progress bar.
total A number indicating the total progress that must be made to reach 100%.
Returns
A number indicating the amount of progress that has been made.
Description
Method; sets the state of the progress bar to reflect the amount of progress made when the
ProgressBar.mode property is set to "manual". You can call this method to make the bar
reflect the state of a process other than loading. For example, you might want to explicitly set
the progress bar to zero progress.
The
completed parameter is assigned to the value property and the total parameter is
assigned to the
maximum property. The minimum property is not altered.