User Guide

ProgressBar component 619
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.
Example
The following code calls setProgress() according to the progress of a Flash applications
Timeline:
pBar.setProgress(_currentFrame, _totalFrames);
ProgressBar.source
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
pBarInstance.source
Description
Property; a reference to the instance to be loaded whose loading process will be displayed. The
loading content should emit a
progress event from which the current and total values are
retrieved. This property is used only when
ProgressBar.mode is set to "event" or "polled".
The default value is
undefined.
The ProgressBar component can be used with content within an application, including
_root.
Example
This example sets the pBar instance to display the loading progress of a Loader component with
the instance name
loader:
pBar.source = loader;
See also
ProgressBar.mode