Progressbar.mode - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

trace(increment_num);
} else {
delete this.onEnterFrame;
}
};
See also
ProgressBar.maximum

ProgressBar.mode

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
progressBarInstance.mode
Description
Property; the mode in which the progress bar loads content. This value can be
, or
"polled"
"manual"
Event mode and polled mode are the most common modes. In event mode, the
property specifies loading content that emits
a Loader object in this mode. In polled mode, the
(such as a MovieClip object) that exposes
methods. Any object that exposes these methods can be used as a source in polled mode
(including a custom object or the root timeline).
You can also use the ProgressBar component in manual mode by manually setting the
,
, and
maximum
minimum
ProgressBar.setProgress()
Example
The following example loads an image into a loader and marks the progress of loading with a
progress bar that is set to
event displays the name of the loader object.
,
ProgressBar.mode
.
getBytesLoaded()
properties and making calls to the
indeterminate
method.
mode. When the load is complete, a listener for the
event
and
progress
complete
property specifies loading content
source
and
,
"event"
source
events; you should use
getsBytesTotal()
complete
ProgressBar.mode
1013

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents