Packagecom.bit101.components
Classpublic class HSlider
InheritanceHSlider Inheritance Slider Inheritance Component Inheritance flash.display.Sprite



Public Properties
 PropertyDefined by
 InheritedbackClick : Boolean
Slider
 Inheritedheight : Number
Component
 Inheritedmaximum : Number
Slider
 Inheritedminimum : Number
Slider
 Inheritedvalue : Number
Slider
 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_handle : Sprite
Slider
 Inherited_height : Number = 0
Component
 Inherited_max : Number = 100
Slider
 Inherited_min : Number = 0
Slider
 Inherited_orientation : String
Slider
 Inherited_value : Number = 0
Slider
 Inherited_width : Number = 0
Component
Public Methods
 MethodDefined by
  
HSlider(parent:DisplayObjectContainer = null, xpos:Number = 0, ypos:Number = 0, defaultHandler:Function = null)
Constructor
HSlider
 Inherited
draw():void
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
 MethodDefined by
 Inherited
addChildren():void
Creates and adds the child display objects of this component.
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
Initializes the component.
Slider
 Inherited
invalidate():void
Marks the component to be redrawn on the next frame.
Component
 Inherited
onDrag(event:MouseEvent):void
Internal mouseDown handler.
Slider
 Inherited
onDrop(event:MouseEvent):void
Internal mouseUp handler.
Slider
 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
 ConstantDefined by
 InheritedDRAW : String = "draw"
[static]
Component
 InheritedHORIZONTAL : String = "horizontal"
[static]
Slider
 InheritedVERTICAL : 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.