| Package | com.bit101.components |
| Class | public class InputText |
| Inheritance | InputText Component flash.display.Sprite |
| Property | Defined by | ||
|---|---|---|---|
![]() | height : Number | Component | |
| maxChars : int | InputText | ||
| password : Boolean | InputText | ||
| restrict : String | InputText | ||
| text : String | InputText | ||
![]() | width : Number | Component | |
![]() | x : Number
Overrides the setter for x to always place the component on a whole pixel.
| Component | |
![]() | y : Number
Overrides the setter for y to always place the component on a whole pixel.
| Component | |
| Method | Defined 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 | ||
![]() |
initStage(stage:Stage):void
[static]
Utility method to set up usual stage align and scaling.
| Component | |
![]() |
move(xpos:Number, ypos:Number):void
Moves the component to the specified position.
| Component | |
![]() |
setSize(w:Number, h:Number):void
Sets the size of the component.
| Component | |
| Method | Defined by | ||
|---|---|---|---|
|
addChildren():void
Creates and adds child display objects.
| InputText | ||
![]() |
getShadow(dist:Number, knockout:Boolean = false):DropShadowFilter
DropShadowFilter factory method, used in many of the components.
| Component | |
|
init():void
Initializes the component.
| InputText | ||
![]() |
invalidate():void
Marks the component to be redrawn on the next frame.
| Component | |
| maxChars | property |
maxChars:int [read-write]Implementation
public function get maxChars():int
public function set maxChars(value:int):void
| password | property |
password:Boolean [read-write]Implementation
public function get password():Boolean
public function set password(value:Boolean):void
| restrict | property |
restrict:String [read-write]Implementation
public function get restrict():String
public function set restrict(value:String):void
| text | property |
text:String [read-write]Implementation
public function get text():String
public function set text(value:String):void
| InputText | () | constructor |
public function InputText(parent:DisplayObjectContainer = null, xpos:Number = 0, ypos:Number = 0, text:String = "", defaultHandler:Function = null)Constructor
Parametersparent: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).
|
| addChildren | () | method |
protected override function addChildren():voidCreates and adds child display objects.
| draw | () | method |
public override function draw():voidDraws the visual ui of the component.
| init | () | method |
protected override function init():voidInitializes the component.