34
CHAPTER 34
ProgressBar component
The ProgressBar component displays the progress of loading content. The ProgressBar is
useful for displaying the status of loading images and pieces of an application. The loading
process can be determinate or indeterminate. A determinate progress bar is a linear
representation of a task's progress over time and is used when the amount of content to load is
known. An indeterminate progress bar is used when the amount of content to load is
unknown. You can add a label to display the progress of the loading content.
The ProgressBar component contains a left cap, a right cap, and a progress track. The caps are
simply the ends of the progress bar, where the progress track visually ends. A live preview of
each ProgressBar instance reflects changes made to parameters in the Property inspector or
Component inspector during authoring. The following parameters are reflected in the live
preview: conversion, direction, label, labelPlacement, mode, and source.
Using the ProgressBar component
A progress bar lets you display the progress of content as it loads. This is essential feedback for
users as they interact with an application.
There are several modes in which to use the ProgressBar component; you set the mode with
the mode parameter. The most commonly used modes are event mode and polled mode.
These modes use the source parameter to specify a loading process that either emits
progress
and
events (event and polled mode), or exposes
and
complete
getBytesLoaded()
methods (polled mode). You can also use the ProgressBar component in
getsBytesTotal()
manual mode by manually setting the
,
, and
properties
maximum
minimum
indeterminate
along with calls to the
method.
ProgressBar.setProgress()
991
Need help?
Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?
Questions and answers