Packagecom.bit101.components
Classpublic class InputText
InheritanceInputText Inheritance Component Inheritance flash.display.Sprite



Public Properties
 PropertyDefined by
 Inheritedheight : Number
Component
  maxChars : int
InputText
  password : Boolean
InputText
  restrict : String
InputText
  text : String
InputText
 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
  
InputText(parent:DisplayObjectContainer = null, xpos:Number = 0, ypos:Number = 0, text:String = "", defaultHandler:Function = null)
Constructor
InputText
  
draw():void
Draws the visual ui of the component.
InputText
 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 and adds child display objects.
InputText
 Inherited
getShadow(dist:Number, knockout:Boolean = false):DropShadowFilter
DropShadowFilter factory method, used in many of the components.
Component
  
init():void
Initializes the component.
InputText
 Inherited
invalidate():void
Marks the component to be redrawn on the next frame.
Component
Public Constants
 ConstantDefined by
 InheritedDRAW : String = "draw"
[static]
Component
Property detail
maxCharsproperty
maxChars:int  [read-write]Implementation
    public function get maxChars():int
    public function set maxChars(value:int):void
passwordproperty 
password:Boolean  [read-write]Implementation
    public function get password():Boolean
    public function set password(value:Boolean):void
restrictproperty 
restrict:String  [read-write]Implementation
    public function get restrict():String
    public function set restrict(value:String):void
textproperty 
text:String  [read-write]Implementation
    public function get text():String
    public function set text(value:String):void
Constructor detail
InputText()constructor
public function InputText(parent:DisplayObjectContainer = null, xpos:Number = 0, ypos:Number = 0, text:String = "", defaultHandler:Function = null)

Constructor

Parameters
parent:DisplayObjectContainer (default = null) — The parent DisplayObjectContainer on which to add this InputText.
 
xpos:Number (default = 0) — The x position to place this component.
 
ypos:Number (default = 0) — The y position to place this component.
 
text:String (default = "") — The string containing the initial text of 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 and adds child display objects.

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

Draws the visual ui of the component.

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

Initializes the component.