User Guide

ProgressBar component 613
Usage
pBarInstance.indeterminate
Description
Property; a Boolean value that indicates whether the progress bar has a striped fill and a loading
source of unknown size (
true), or a solid fill and a loading source of a known size (false). For
example, you might use this property if you are loading a large data set into a SWF file and do not
know the size of the data you are loading.
Example
The following code creates a determinate progress bar with a solid fill that moves from left
to right. Drag an instance of the ProgressBar component onto the Stage, and enter the instance
name
my_pb in the Property inspector. Drag an instance of the Loader component onto the Stage,
and enter the instance name
my_ldr in the Property inspector. Add the following code to Frame 1
of the Timeline:
var my_pb:mx.controls.ProgressBar;
var my_ldr:mx.controls.Loader;
var pbListener:Object = new Object();
pbListener.complete = function(evt:Object) {
evt.target._visible = false;
};
my_pb.addEventListener("complete", pbListener);
my_pb.mode = "polled";
my_pb.indeterminate = true;
my_pb.source = my_ldr;
my_ldr.autoLoad = false;
my_ldr.scaleContent = false;
my_ldr.load("http://www.macromedia.com/software/flex/images/
flex_presentation_eyes.jpg");
ProgressBar.label
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
pBarInstance.label