Packagecom.divillysausages.gameobjeditor.component
Classpublic class SliderComponent
InheritanceSliderComponent Inheritance GOEComponent Inheritance Object

The component we use when we're looking to edit number values using a slider rather than a stepper



Public Properties
 PropertyDefined By
 InheritedhasReadAccess : Boolean
[read-only] Does this component edit a variable that has read access?
GOEComponent
 Inheritedheight : Number
[read-only] The height of the component
GOEComponent
 Inheritedtype : String
[read-only] The type of the component.
GOEComponent
 Inheritedwidth : Number
[read-only] The width of the component
GOEComponent
Protected Properties
 PropertyDefined By
 Inheritedm_component : Component = null
GOEComponent
 Inheritedm_editVar : EditableVar = null
GOEComponent
 Inheritedm_obj : * = null
GOEComponent
 Inheritedm_spacing : Number = 5.0
GOEComponent
Public Methods
 MethodDefined By
  
SliderComponent(obj:*, variable:EditableVar, parent:DisplayObjectContainer = null, x:Number = 0.0, y:Number = 0.0)
Creates a new SliderComponent
SliderComponent
  
destroy():void
[override] Destroys the CheckboxComponent and clears it for garbage collection
SliderComponent
  
update():void
[override] Updates the SliderComponent to always match our object's variable
SliderComponent
Constructor Detail
SliderComponent()Constructor
public function SliderComponent(obj:*, variable:EditableVar, parent:DisplayObjectContainer = null, x:Number = 0.0, y:Number = 0.0)

Creates a new SliderComponent

Parameters
obj:* — The object that we're dealing with
 
variable:EditableVar — The EditableVar object that holds our variable info
 
parent:DisplayObjectContainer (default = null) — The DisplayObjectContainer to add this component to
 
x:Number (default = 0.0) — The component x position
 
y:Number (default = 0.0) — The component y position
Method Detail
destroy()method
override public function destroy():void

Destroys the CheckboxComponent and clears it for garbage collection

update()method 
override public function update():void

Updates the SliderComponent to always match our object's variable