Package com.bit101.components
Class public class VUISlider
Inheritance VUISlider InheritanceUISlider 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
  Inherited label : String
Gets / sets the text shown in this component's label.
UISlider
  Inherited labelPrecision : int
Gets / sets the number of decimals to format the value label.
UISlider
  Inherited maximum : Number
Gets / sets the maximum value of this slider.
UISlider
  Inherited minimum : Number
Gets / sets the minimum value of this slider.
UISlider
  Inherited tag : int
Sets/gets in integer that can identify the component.
Component
  Inherited tick : Number
Gets / sets the tick value of this slider.
UISlider
  Inherited value : Number
Sets / gets the current value of this slider.
UISlider
    width : Number
[override]
VUISlider
  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
  Inherited _enabled : Boolean = true
Component
  Inherited _height : Number = 0
Component
  Inherited _label : Label
UISlider
  Inherited _labelText : String
UISlider
  Inherited _precision : int = 1
UISlider
  Inherited Ronda : Class
Component
  Inherited _slider : Slider
UISlider
  Inherited _sliderClass : Class
UISlider
  Inherited _tag : int = -1
Component
  Inherited _tick : Number = 1
UISlider
  Inherited _valueLabel : Label
UISlider
  Inherited _width : Number = 0
Component
Public Methods
  Method Defined By
   
VUISlider(parent:DisplayObjectContainer = null, x:Number = 0, y:Number = 0, label:String, defaultEventHandler:Function = null)
Constructor
VUISlider
   
draw():void
[override]
VUISlider
  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
  Method Defined By
  Inherited
addChildren():void
[override] 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
[override] Initializes this component.
VUISlider
  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
  Inherited
onSliderChange(event:Event):void
Handler called when the slider's value changes.
UISlider
   
[override]
VUISlider
Public Constants
  Constant Defined By
  Inherited DRAW : String = draw
[static]
Component
Property Detail
width property
width:Number[override]


Implementation
    public function get width():Number
    public function set width(value:Number):void
Constructor Detail
VUISlider () Constructor
public function VUISlider(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 VUISlider.
 
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.
Method Detail
draw () method
override public function draw():void

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

Initializes this component.

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