The ProgressBar control provides a visual representation of the progress of a task over time. There are two types of ProgressBar control: determinate and indeterminate.
A determinate ProgressBar control is a linear representation of the progress of a task over time. You use a determinate ProgressBar when the scope of the task is known. It displays when the user has to wait for an extended amount of time.
An indeterminate ProgressBar control represents time-based processes for which the scope is not yet known. As soon as you can determine the scope, you should use a determinate ProgressBar control.
MXML Syntax
The <mx:ProgressBar> tag inherits all the properties of its parent classes, and the following properties:
<mx:ProgressBar
conversion=""
direction=="right|left"
indeterminate="false|true"
label="No default."
labelPlacement="bottom|top|left|right|center"
maximum="0"
minimum="0"
mode="event|polled|manual"
source="No default."
complete="Event handler; no default."
progress="Event handler; no default."
/>
| Constructors | |
ProgressBar
()
Constructor. |
|
| Methods | |
| setProgress(completed:Number, total:Number) : Void
Sets the state of the bar to reflect the amount of progress made when using manual mode. |
| Properties | |
| className:String
Name of this class. |
static | version:String
ComponentVersion is for internal use only. |
| mode:String
[Read-Write]
Mode, which can be event, polled, or manual. |
| source:Object
[Read-Write]
Instance that loads content to the progress bar. |
| direction:String
[Read-Write]
Direction of fill of the progress bar. |
| label:String
[Read-Write]
Text that accompanies the progress bar. |
| labelPlacement:String
[Read-Write]
Placement of label. |
| indeterminate:Boolean
[Read-Write]
Whether the Progress Bar control has a determinate or indeterminate appearance. |
| conversion:Number
[Read-Write]
Number used to convert incoming current bytes loaded value and the total bytes loaded values. |
| percentComplete:Number
[Read-Only]
Percentage of process that is completed. |
| maximum:Number
[Read-Write]
Largest progress value for the progress bar. |
| minimum:Number
[Read-Write]
Smallest progress value for the progress bar. |
| value:Number
[Read-Only]
Read-only property that contains the amount of progress that has been made - between the minimum and maximum values. |
| Effects |
| Effects inherited from class mx.core.UIObject |
creationCompleteEffect
moveEffect
resizeEffect
mouseDownEffect
mouseOverEffect
mouseOutEffect
mouseUpEffect
|
| Events | |
complete | Handler for complete events, which are broadcast when the load completes. The event object contains the following properties: - current Amount of content currently loaded. - total Total amount of content. Target contains a reference to the component that triggered the event. Type contains the name of the event. |
progress | Handler for progress events, which are broadcast as content loads in event or polled mode. The target property of the event or polled mode. The event object contains the following properties: - current Amount of content currently loaded. - total Total amount of content. Target contains a reference to the component that triggered the event. Type contains the name of the event. |
| Styles | |
themeColor |
Type: Number
Format: Color
CSS Inheritance: yes
Background color of the ProgressBar control. Possible values are haloGreen, haloBlue, and haloOrange. Macromedia recommends setting the themeColor style in the <mx:Application> tag, instead of in individual controls. |
| Styles inherited from class mx.core.UIObject |
color
fontFamily
fontSize
fontStyle
fontWeight
textAlign
textDecoration
textIndent
marginLeft
marginRight
horizontalGap
verticalGap
|
| Constructor Detail |
ProgressBar()
| Method Detail |
setProgress(completed:Number, total:Number) : Void
Parameters
completed - Current value.
total - Total value.
| Property Detail |
className:String
conversion:Number
[Read-Write]
direction:String
[Read-Write]
indeterminate:Boolean
[Read-Write]
label:String
[Read-Write]
labelPlacement:String
[Read-Write]
maximum:Number
[Read-Write]
minimum:Number
[Read-Write]
mode:String
[Read-Write]
percentComplete:Number
[Read-Only]
source:Object
[Read-Write]
value:Number
[Read-Only]
static version:String