Progressbar.labelplacement - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

System.security.allowDomain("http://www.helpexamples.com");
this.createClassObject(mx.controls.ProgressBar, "my_pb", 10);
this.createClassObject(mx.controls.Loader, "my_ldr", 20);
my_ldr.move(0, 30);
//Set progress bar settings
my_pb.mode = "polled";
my_pb.source = my_ldr;
my_pb.label = "%1 of %2 KB loaded";
my_pb.conversion = 1024; // 1024 bytes in a KB
//Set loader settings
my_ldr.autoLoad = false;
my_ldr.scaleContent = false;
my_ldr.load("http://www.helpexamples.com/flash/images/image1.jpg")
See also

ProgressBar.labelPlacement

ProgressBar.labelPlacement
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
progressBarInstance.labelPlacement
Description
Property; sets the placement of the label in relation to the progress bar. The possible values are
,
,
,
, and
.
"left"
"right"
"top"
"bottom"
"center"
Example
The following example loads an image into a loader and marks the progress with a progress
bar. It sets the
property to
to place the label above the progress bar.
labelPlacement
top
ProgressBar.labelPlacement 1009

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents