Package | com.bit101.components |
Class | public class HUISlider |
Inheritance | HUISlider UISlider Component flash.display.Sprite |
Method | Defined By | ||
---|---|---|---|
HUISlider(parent:DisplayObjectContainer = null, x:Number = 0, y:Number = 0, label:String, defaultEventHandler:Function = null)
Constructor
|
HUISlider | ||
draw():void
[override]
Draws the visual ui of this component.
|
HUISlider | ||
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 | ||
setSliderParams(min:Number, max:Number, value:Number):void
Convenience method to set the three main parameters in one shot.
|
UISlider |
Method | Defined By | ||
---|---|---|---|
addChildren():void
[override]
Creates and adds the child display objects of this component.
|
UISlider | ||
formatValueLabel():void
Formats the value of the slider to a string based on the current level of precision.
|
UISlider | ||
getShadow(dist:Number, knockout:Boolean = false):DropShadowFilter
DropShadowFilter factory method, used in many of the components.
|
Component | ||
init():void
[override]
Initializes the component.
|
HUISlider | ||
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 | ||
onSliderChange(event:Event):void
Handler called when the slider's value changes.
|
UISlider | ||
positionLabel():void
[override]
Centers the label when label text is changed.
|
HUISlider |
HUISlider | () | Constructor |
public function HUISlider(parent:DisplayObjectContainer = null, x:Number = 0, y:Number = 0, label:String, defaultEventHandler:Function = null)
Constructor
Parameters
parent:DisplayObjectContainer (default = null ) — The parent DisplayObjectContainer on which to add this HUISlider.
|
|
x:Number (default = 0 ) — The x position to place this component.
|
|
y:Number (default = 0 ) — The y position to place this component.
|
|
label:String — The string to use as the label for this component.
|
|
defaultEventHandler:Function (default = null ) — The event handling function to handle the default event for this component.
|
draw | () | method |
override public function draw():void
Draws the visual ui of this component.
init | () | method |
override protected function init():void
Initializes the component.
positionLabel | () | method |
override protected function positionLabel():void
Centers the label when label text is changed.