Packagecom.bit101.components
Classpublic class HUISlider
InheritanceHUISlider Inheritance UISlider Inheritance Component Inheritance flash.display.Sprite



Public Properties
 PropertyDefined by
 Inheritedheight : Number
Component
 Inheritedlabel : String
UISlider
 InheritedlabelPrecision : int
UISlider
 Inheritedmaximum : Number
UISlider
 Inheritedminimum : Number
UISlider
 Inheritedvalue : Number
UISlider
 Inheritedwidth : Number
Component
 Inheritedx : Number
Overrides the setter for x to always place the component on a whole pixel.
Component
 Inheritedy : Number
Overrides the setter for y to always place the component on a whole pixel.
Component
Protected Properties
 PropertyDefined by
 Inherited_height : Number = 0
Component
 Inherited_label : Label
UISlider
 Inherited_slider : Slider
UISlider
 Inherited_sliderClass : Class
UISlider
 Inherited_valueLabel : Label
UISlider
 Inherited_width : Number = 0
Component
Public Methods
 MethodDefined by
  
HUISlider(parent:DisplayObjectContainer = null, x:Number = 0, y:Number = 0, label:String = "", defaultEventHandler:Function = null)
Constructor
HUISlider
  
draw():void
Draws the visual ui of this component.
HUISlider
 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
 Inherited
setSliderParams(min:Number, max:Number, value:Number):void
Convenience method to set the three main parameters in one shot.
UISlider
Protected Methods
 MethodDefined by
 Inherited
addChildren():void
Creates and adds the child display objects of this component.
UISlider
 Inherited
Formats the value of the slider to a string based on the current level of precision.
UISlider
 Inherited
getShadow(dist:Number, knockout:Boolean = false):DropShadowFilter
DropShadowFilter factory method, used in many of the components.
Component
  
init():void
Initializes the component.
HUISlider
 Inherited
invalidate():void
Marks the component to be redrawn on the next frame.
Component
  
Centers the label when label text is changed.
HUISlider
Public Constants
 ConstantDefined by
 InheritedDRAW : String = "draw"
[static]
Component
Constructor detail
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 (default = "") — 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.
Method detail
draw()method
public override function draw():void

Draws the visual ui of this component.

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

Initializes the component.

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

Centers the label when label text is changed.