| Package | com.bit101.components |
| Class | public class Text |
| Inheritance | Text Component flash.display.Sprite |
| Subclasses | TextArea |
| Property | Defined By | ||
|---|---|---|---|
|
editable : Boolean
Gets / sets whether or not this text component will be editable.
|
Text | ||
|
enabled : Boolean [override]
Sets/gets whether this component is enabled or not.
|
Text | ||
![]() |
height : Number [override]
Sets/gets the height of the component.
|
Component | |
|
html : Boolean
Gets / sets whether or not text will be rendered as HTML or plain text.
|
Text | ||
|
selectable : Boolean
Gets / sets whether or not this text component will be selectable.
|
Text | ||
![]() |
tag : int
Sets/gets in integer that can identify the component.
|
Component | |
|
text : String
Gets / sets the text of this Label.
|
Text | ||
|
textField : TextField [read-only]
Returns a reference to the internal text field in the component.
|
Text | ||
![]() |
width : Number [override]
Sets/gets the width of the component.
|
Component | |
![]() |
x : Number [override] [write-only]
Overrides the setter for x to always place the component on a whole pixel.
|
Component | |
![]() |
y : Number [override] [write-only]
Overrides the setter for y to always place the component on a whole pixel.
|
Component | |
| Property | Defined By | ||
|---|---|---|---|
| _editable : Boolean = true | Text | ||
![]() |
_enabled : Boolean = true | Component | |
![]() |
_height : Number = 0 | Component | |
| _html : Boolean = false | Text | ||
| _panel : Panel | Text | ||
![]() |
Ronda : Class | Component | |
| _selectable : Boolean = true | Text | ||
![]() |
_tag : int = -1 | Component | |
| _text : String | Text | ||
| _tf : TextField | Text | ||
![]() |
_width : Number = 0 | Component | |
| Method | Defined By | ||
|---|---|---|---|
|
Text(parent:DisplayObjectContainer = null, xpos:Number = 0, ypos:Number = 0, text:String)
Constructor
|
Text | ||
|
draw():void
[override]
Draws the visual ui of the component.
|
Text | ||
![]() |
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
[override]
Creates and adds the child display objects of this component.
|
Text | ||
![]() |
getShadow(dist:Number, knockout:Boolean = false):DropShadowFilter
DropShadowFilter factory method, used in many of the components.
|
Component | |
|
init():void
[override]
Initializes the component.
|
Text | ||
![]() |
invalidate():void
Marks the component to be redrawn on the next frame.
|
Component | |
|
onChange(event:Event):void
Called when the text in the text field is manually changed.
|
Text | ||
![]() |
onInvalidate(event:Event):void
Called one frame after invalidate is called.
|
Component | |
| _editable | property |
protected var _editable:Boolean = true
| _html | property |
protected var _html:Boolean = false
| _panel | property |
protected var _panel:Panel
| _selectable | property |
protected var _selectable:Boolean = true
| _text | property |
protected var _text:String
| _tf | property |
protected var _tf:TextField
| editable | property |
editable:Boolean
Gets / sets whether or not this text component will be editable.
public function get editable():Boolean public function set editable(value:Boolean):void| enabled | property |
enabled:Boolean[override]
Sets/gets whether this component is enabled or not.
public function get enabled():Boolean public function set enabled(value:Boolean):void| html | property |
html:Boolean
Gets / sets whether or not text will be rendered as HTML or plain text.
public function get html():Boolean public function set html(value:Boolean):void| selectable | property |
selectable:Boolean
Gets / sets whether or not this text component will be selectable. Only meaningful if editable is false.
public function get selectable():Boolean public function set selectable(value:Boolean):void| text | property |
text:String
Gets / sets the text of this Label.
public function get text():String public function set text(value:String):void| textField | property |
textField:TextField [read-only]
Returns a reference to the internal text field in the component.
public function get textField():TextField| Text | () | Constructor |
public function Text(parent:DisplayObjectContainer = null, xpos:Number = 0, ypos:Number = 0, text:String)
Constructor
Parameters
parent:DisplayObjectContainer (default = null) — The parent DisplayObjectContainer on which to add this Label.
|
|
xpos:Number (default = 0) — The x position to place this component.
|
|
ypos:Number (default = 0) — The y position to place this component.
|
|
text:String — The initial text to display in this component.
|
| addChildren | () | method |
override protected function addChildren():void
Creates and adds the child display objects of this component.
| draw | () | method |
override public function draw():void
Draws the visual ui of the component.
| init | () | method |
override protected function init():void
Initializes the component.
| onChange | () | method |
protected function onChange(event:Event):void
Called when the text in the text field is manually changed.
Parameters
event:Event |