Packagecom.bit101.components
Classpublic class RotarySelector
InheritanceRotarySelector Inheritance Component Inheritance flash.display.Sprite



Public Properties
 PropertyDefined by
  choice : uint
RotarySelector
 Inheritedheight : Number
Component
  labelMode : String
RotarySelector
  numChoices : uint
RotarySelector
 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_width : Number = 0
Component
Public Methods
 MethodDefined by
  
RotarySelector(parent:DisplayObjectContainer = null, xpos:Number = 0, ypos:Number = 0, label:String = "", defaultHandler:Function = null)
Constructor
RotarySelector
  
draw():void
Draws the visual ui of the component.
RotarySelector
 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
Protected Methods
 MethodDefined by
  
addChildren():void
Creates the children for this component
RotarySelector
 Inherited
getShadow(dist:Number, knockout:Boolean = false):DropShadowFilter
DropShadowFilter factory method, used in many of the components.
Component
  
init():void
Initializes the component.
RotarySelector
 Inherited
invalidate():void
Marks the component to be redrawn on the next frame.
Component
Public Constants
 ConstantDefined by
  ALPHABETIC : String = "alphabetic"
[static]
RotarySelector
 InheritedDRAW : String = "draw"
[static]
Component
  NONE : String = "none"
[static]
RotarySelector
  NUMERIC : String = "numeric"
[static]
RotarySelector
  ROMAN : String = "roman"
[static]
RotarySelector
Property detail
choiceproperty
choice:uint  [read-write]Implementation
    public function get choice():uint
    public function set choice(value:uint):void
labelModeproperty 
labelMode:String  [read-write]Implementation
    public function get labelMode():String
    public function set labelMode(value:String):void
numChoicesproperty 
numChoices:uint  [read-write]Implementation
    public function get numChoices():uint
    public function set numChoices(value:uint):void
Constructor detail
RotarySelector()constructor
public function RotarySelector(parent:DisplayObjectContainer = null, xpos:Number = 0, ypos:Number = 0, label:String = "", defaultHandler:Function = null)

Constructor

Parameters
parent:DisplayObjectContainer (default = null) — The parent DisplayObjectContainer on which to add this CheckBox.
 
xpos:Number (default = 0) — The x position to place this component.
 
ypos:Number (default = 0) — The y position to place this component.
 
label:String (default = "") — String containing the label for this component.
 
defaultHandler:Function (default = null) — The event handling function to handle the default event for this component (change in this case).
Method detail
addChildren()method
protected override function addChildren():void

Creates the children for this component

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

Draws the visual ui of the component.

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

Initializes the component.

Constant detail
ALPHABETICconstant
public static const ALPHABETIC:String = "alphabetic"
NONEconstant 
public static const NONE:String = "none"
NUMERICconstant 
public static const NUMERIC:String = "numeric"
ROMANconstant 
public static const ROMAN:String = "roman"