User Guide

614 Chapter 6: Components Dictionary
Description
Property; text that indicates the loading progress. This property is a string in the format "%1 out
of %2 loaded (%3%%)"
. In this string, %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 percentage of content
loaded. (The characters
%% allow Flash to display a single % character.) If a value for %2 is
unknown, it is replaced by
??. If a value is undefined, the label doesnt display. The default value
is
"LOADING %3%%".
Example
The following code lets your application display progress bar text that reads “3 files loaded,” “4
files loaded,” and so on as the files load:
pBar.label = "%1 files loaded";
See also
ProgressBar.labelPlacement
ProgressBar.labelPlacement
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
pBarInstance.labelPlacement
Description
Property; sets the placement of the label in relation to the progress bar. The possible values are
"left", "right", "top", "bottom", and "center".
Example
The following code specifies that the text label appears above the progress bar:
pBar.label = "%1 out of %2 loaded (%3%%)";
pBar.labelPlacement = "top";
See also
ProgressBar.label
ProgressBar.maximum
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.