Progressbar.minimum - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

ProgressBar.minimum

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
progressBarInstance.minimum
Description
Property; the smallest value for the progress bar when the
to
.
"manual"
Example
The following example manually increments a ProgressBar component, starting with a
minimum value of 100. It displays the increment in the Output panel as the value increases.
Drag an instance of the ProgressBar component onto the Stage, and enter the instance name
in the Property inspector. Add the following code to Frame 1 of the timeline:
my_pb
/**
Requires:
- ProgressBar component on Stage (instance name: my_pb)
*/
var my_pb:mx.controls.ProgressBar;
//Set progress bar mode
my_pb.mode = "manual";
my_pb.label = "%1 out of %2 loaded";
//minimum numerical value before progress bar increments
my_pb.minimum = 100;
//maximum value of progress bar before it stops
my_pb.maximum = 200;
var increment_num:Number = my_pb.minimum;
this.onEnterFrame = function() {
if (increment_num < my_pb.maximum) {
increment_num++;
//update progress of number incrementing
my_pb.setProgress(increment_num, my_pb.maximum);
1012
ProgressBar component
property is set
ProgressBar.mode

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents