Progressbar.label - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

my_pb.indeterminate = true;
my_pb.source = my_ldr;
//Set loader settings
my_ldr.autoLoad = false;
my_ldr.scaleContent = false;
my_ldr.move(100, 100)
my_ldr.load("http://www.helpexamples.com/flash/images/image1.jpg");

ProgressBar.label

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
progressBarInstance.label
Description
Property; text that indicates the loading progress. This property is a string in the format
out of %2 loaded (%3%%)"
is a placeholder for the total bytes loaded, and
%2
content loaded. (The characters
is unknown, it is replaced by
value is
"LOADING %3%%"
Example
The following example loads an image into a loader and marks the progress with a progress
bar whose label specifies the percent of total kilobytes that have been loaded.
You must first drag a Loader component and a ProgressBar component from the Components
panel to the current document's library; then add the following code to Frame 1 of the main
timeline:
/**
Requires:
- ProgressBar component in library
- Loader component in library
*/
1008 ProgressBar component
. In this string,
%1
allow Flash to display a single
%%
. If a value is
??
undefined
.
is a placeholder for the current bytes loaded,
is a placeholder for the percentage of
%3
character.) If a value for
%
, the label doesn't display. The default
"%1
%2

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents