ProgressBar class

Inheritance UIObject > ProgressBar

ActionScript Class Namespace mx.controls.ProgressBar

Setting a property of the ProgressBar class with ActionScript overrides the parameter of the same name set in the Property inspector or Component Inspector panel.

Each component class has a version property which is a class property. Class properties are only available on the class itself. The version property returns a string that indicates the version of the component. To access the version property, use the following code:

trace(mx.controls.ProgressBar.version);

Note: The following code returns undefined: trace(myProgressBarInstance.version);.

Method summary for the ProgressBar class

Method

Description

ProgressBar.setProgress()

Sets the progress of the bar in manual mode.

Inherits all methods from UIObject class.

Property summary for the ProgressBar class

Property

Description

ProgressBar.conversion

A number used to convert the current bytes loaded value and the total bytes loaded values.

ProgressBar.direction

The direction that the progress bar fills.

ProgressBar.indeterminate

Indicates that the total bytes of the source is unknown.

ProgressBar.label

The text the accompanies the progress bar.

ProgressBar.labelPlacement

The location of the label in relation to the progress bar.

ProgressBar.maximum

The maximum value of the progress bar in manual mode.

ProgressBar.minimum

The minimum value of the progress bar in manual mode.

ProgressBar.mode

The mode in which the progress bar loads content.

ProgressBar.percentComplete

A number indicating the percent loaded.

ProgressBar.source

The content to load whose progress is monitored by the progress bar.

ProgressBar.value

Indicates the amount of progress that has been made. This property is read-only.

Inherits all properties from UIObject class.

Event summary for the ProgressBar class

Event

Description

ProgressBar.complete

Triggered when loading is complete.

ProgressBar.progress

Triggered as content loads in event or polled mode.

Inherits all events from UIObject class.