ProgressBar

Kind of class: public class
Package:
Inherits from:
  • Sprite
Author: John Polacek, john@johnpolacek.com
Classpath: com.johnpolacek.ui.ProgressBar
File last modified: Friday, 12 November 2010, 15:34:14
ProgressBar UI Component
Events broadcasted to listeners
  • UIEvent.PROGRESS_UPDATE # Transmits progress percentage value (from 0 to 1) on user interaction

Summary

Constructor
  • ProgressBar (w:Number, h:Number, backgroundColor:uint = 0x000000, buttonColor:uint = 0xFFFFFF)
Instance properties
  • percent : Number
    • The percent of progress (between 0 and 1)
Instance methods
  • setProgress (p:Number) : void
    • Sets the progress of the bar

Constructor

ProgressBar

function ProgressBar(w:Number, h:Number, backgroundColor:uint = 0x000000, buttonColor:uint = 0xFFFFFF)
Parameters
 

Instance properties

percent

percent:Number(read,write)

The percent of progress (between 0 and 1)

Instance methods

setProgress

function setProgress(p:Number) : void

Sets the progress of the bar