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



Public Properties
  Property Defined By
  Inherited backClick : Boolean
Sets / gets whether or not a click on the background of the slider will move the handler to that position.
Slider
  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 maximum : Number
Gets / sets the maximum value of this slider.
Slider
  Inherited minimum : Number
Gets / sets the minimum value of this slider.
Slider
  Inherited tag : int
Sets/gets in integer that can identify the component.
Component
  Inherited tick : Number
Gets / sets the tick value of this slider.
Slider
  Inherited value : Number
Sets / gets the current value of this slider.
Slider
  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
  Inherited _back : Sprite
Slider
  Inherited _backClick : Boolean = true
Slider
  Inherited _enabled : Boolean = true
Component
  Inherited _handle : Sprite
Slider
  Inherited _height : Number = 0
Component
  Inherited _max : Number = 100
Slider
  Inherited _min : Number = 0
Slider
  Inherited _orientation : String
Slider
  Inherited Ronda : Class
Component
  Inherited _tag : int = -1
Component
  Inherited _tick : Number = 1
Slider
  Inherited _value : Number = 0
Slider
  Inherited _width : Number = 0
Component
Public Methods
  Method Defined By
   
HSlider(parent:DisplayObjectContainer = null, xpos:Number = 0, ypos:Number = 0, defaultHandler:Function = null)
Constructor
HSlider
  Inherited
draw():void
[override] Draws the visual ui of the component.
Slider
  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.
Slider
Protected Methods
  Method Defined By
  Inherited
addChildren():void
[override] Creates and adds the child display objects of this component.
Slider
  Inherited
correctValue():void
Adjusts value to be within minimum and maximum.
Slider
  Inherited
drawBack():void
Draws the back of the slider.
Slider
  Inherited
drawHandle():void
Draws the handle of the slider.
Slider
  Inherited
getShadow(dist:Number, knockout:Boolean = false):DropShadowFilter
DropShadowFilter factory method, used in many of the components.
Component
  Inherited
init():void
[override] Initializes the component.
Slider
  Inherited
invalidate():void
Marks the component to be redrawn on the next frame.
Component
  Inherited
onBackClick(event:MouseEvent):void
Handler called when user clicks the background of the slider, causing the handle to move to that point.
Slider
  Inherited
onDrag(event:MouseEvent):void
Internal mouseDown handler.
Slider
  Inherited
onDrop(event:MouseEvent):void
Internal mouseUp handler.
Slider
  Inherited
onInvalidate(event:Event):void
Called one frame after invalidate is called.
Component
  Inherited
onSlide(event:MouseEvent):void
Internal mouseMove handler for when the handle is being moved.
Slider
  Inherited
Adjusts position of handle when value, maximum or minimum have changed.
Slider
Public Constants
  Constant Defined By
  Inherited DRAW : String = draw
[static]
Component
  Inherited HORIZONTAL : String = horizontal
[static]
Slider
  Inherited VERTICAL : String = vertical
[static]
Slider
Constructor Detail
HSlider () Constructor
public function HSlider(parent:DisplayObjectContainer = null, xpos:Number = 0, ypos:Number = 0, defaultHandler:Function = null)

Constructor

Parameters
parent:DisplayObjectContainer (default = null) — The parent DisplayObjectContainer on which to add this HSlider.
 
xpos:Number (default = 0) — The x position to place this component.
 
ypos:Number (default = 0) — The y position to place this component.
 
defaultHandler:Function (default = null) — The event handling function to handle the default event for this component.