Package com.bit101.components
Class public class ProgressBar
Inheritance ProgressBar InheritanceComponent Inheritance flash.display.Sprite



Public Properties
  Property Defined By
  Inherited enabled : Boolean
Sets/gets whether this component is enabled or not.
Component
  Inherited height : Number
[override] Sets/gets the height of the component.
Component
    maximum : Number
Gets / sets the maximum value of the ProgressBar.
ProgressBar
  Inherited tag : int
Sets/gets in integer that can identify the component.
Component
    value : Number
Gets / sets the current value of the ProgressBar.
ProgressBar
  Inherited width : Number
[override] Sets/gets the width of the component.
Component
  Inherited x : Number
[override] [write-only] Overrides the setter for x to always place the component on a whole pixel.
Component
  Inherited y : Number
[override] [write-only] Overrides the setter for y to always place the component on a whole pixel.
Component
Protected Properties
  Property Defined By
    _back : Sprite
ProgressBar
    _bar : Sprite
ProgressBar
  Inherited _enabled : Boolean = true
Component
  Inherited _height : Number = 0
Component
    _max : Number = 1
ProgressBar
  Inherited Ronda : Class
Component
  Inherited _tag : int = -1
Component
    _value : Number = 0
ProgressBar
  Inherited _width : Number = 0
Component
Public Methods
  Method Defined By
   
ProgressBar(parent:DisplayObjectContainer = null, xpos:Number = 0, ypos:Number = 0)
Constructor
ProgressBar
   
draw():void
[override] Draws the visual ui of the component.
ProgressBar
  Inherited
initStage(stage:Stage):void
[static] Utility method to set up usual stage align and scaling.
Component
  Inherited
move(xpos:Number, ypos:Number):void
Moves the component to the specified position.
Component
  Inherited
setSize(w:Number, h:Number):void
Sets the size of the component.
Component
Protected Methods
  Method Defined By
   
addChildren():void
[override] Creates and adds the child display objects of this component.
ProgressBar
  Inherited
getShadow(dist:Number, knockout:Boolean = false):DropShadowFilter
DropShadowFilter factory method, used in many of the components.
Component
   
init():void
[override] Initializes the component.
ProgressBar
  Inherited
invalidate():void
Marks the component to be redrawn on the next frame.
Component
  Inherited
onInvalidate(event:Event):void
Called one frame after invalidate is called.
Component
   
update():void
Updates the size of the progress bar based on the current value.
ProgressBar
Public Constants
  Constant Defined By
  Inherited DRAW : String = draw
[static]
Component
Property Detail
_back property
protected var _back:Sprite

_bar property  
protected var _bar:Sprite

_max property  
protected var _max:Number = 1

_value property  
protected var _value:Number = 0

maximum property  
maximum:Number

Gets / sets the maximum value of the ProgressBar.


Implementation
    public function get maximum():Number
    public function set maximum(value:Number):void
value property  
value:Number

Gets / sets the current value of the ProgressBar.


Implementation
    public function get value():Number
    public function set value(value:Number):void
Constructor Detail
ProgressBar () Constructor
public function ProgressBar(parent:DisplayObjectContainer = null, xpos:Number = 0, ypos:Number = 0)

Constructor

Parameters
parent:DisplayObjectContainer (default = null) — The parent DisplayObjectContainer on which to add this ProgressBar.
 
xpos:Number (default = 0) — The x position to place this component.
 
ypos:Number (default = 0) — The y position to place this component.
Method Detail
addChildren () method
override protected function addChildren():void

Creates and adds the child display objects of this component.

draw () method  
override public function draw():void

Draws the visual ui of the component.

init () method  
override protected function init():void

Initializes the component.

update () method  
protected function update():void

Updates the size of the progress bar based on the current value.