ProgressBar.label

Availability

Flash Player 6.0.79.

Edition

Flash MX 2004.

Usage

pBarInstance.label

Description

Property; text that indicates the loading progress. This property is a string in the format "%1 out of %2 loaded (%3%%)"; %1 is a placeholder for the current bytes loaded, %2 is a placeholder for the total bytes loaded, and %3 is a placeholder for the percent of content loaded. The characters "%%" are a placeholder for the "%" character. If a value for %2 is unknown, it is replaced by "??". If a value is undefined, the label doesn't display. The default value is "LOADING %3%%"

Example

The following code sets the text that appears beside the progress bar to the format "4 files loaded":

pBar.label = "%1 files loaded";

See also

ProgressBar.labelPlacement