Package | com.bit101.components |
Class | public class ProgressBar |
Inheritance | ProgressBar ![]() ![]() |
Property | Defined By | ||
---|---|---|---|
![]() |
enabled : Boolean
Sets/gets whether this component is enabled or not.
|
Component | |
![]() |
height : Number [override]
Sets/gets the height of the component.
|
Component | |
maximum : Number
Gets / sets the maximum value of the ProgressBar.
|
ProgressBar | ||
![]() |
tag : int
Sets/gets in integer that can identify the component.
|
Component | |
value : Number
Gets / sets the current value of the ProgressBar.
|
ProgressBar | ||
![]() |
width : Number [override]
Sets/gets the width of the component.
|
Component | |
![]() |
x : Number [override] [write-only]
Overrides the setter for x to always place the component on a whole pixel.
|
Component | |
![]() |
y : Number [override] [write-only]
Overrides the setter for y to always place the component on a whole pixel.
|
Component |
Property | Defined By | ||
---|---|---|---|
_back : Sprite | ProgressBar | ||
_bar : Sprite | ProgressBar | ||
![]() |
_enabled : Boolean = true | Component | |
![]() |
_height : Number = 0 | Component | |
_max : Number = 1 | ProgressBar | ||
![]() |
Ronda : Class | Component | |
![]() |
_tag : int = -1 | Component | |
_value : Number = 0 | ProgressBar | ||
![]() |
_width : Number = 0 | Component |
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 | ||
![]() |
initStage(stage:Stage):void
[static]
Utility method to set up usual stage align and scaling.
|
Component | |
![]() |
move(xpos:Number, ypos:Number):void
Moves the component to the specified position.
|
Component | |
![]() |
setSize(w:Number, h:Number):void
Sets the size of the component.
|
Component |
Method | Defined By | ||
---|---|---|---|
addChildren():void
[override]
Creates and adds the child display objects of this component.
|
ProgressBar | ||
![]() |
getShadow(dist:Number, knockout:Boolean = false):DropShadowFilter
DropShadowFilter factory method, used in many of the components.
|
Component | |
init():void
[override]
Initializes the component.
|
ProgressBar | ||
![]() |
invalidate():void
Marks the component to be redrawn on the next frame.
|
Component | |
![]() |
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 |
_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.
public function get maximum():Number
public function set maximum(value:Number):void
value | property |
value:Number
Gets / sets the current value of the ProgressBar.
public function get value():Number
public function set value(value:Number):void
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.
|
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.