| Property | Defined by | ||
|---|---|---|---|
| editable : Boolean | Text | ||
![]() | height : Number | Component | |
| text : String | Text | ||
![]() | 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 | ||
|---|---|---|---|
|
Text(parent:DisplayObjectContainer = null, xpos:Number = 0, ypos:Number = 0, text:String = "")
Constructor
| Text | ||
|
draw():void
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
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
Initializes the component.
| Text | ||
![]() |
invalidate():void
Marks the component to be redrawn on the next frame.
| Component | |
| editable | property |
editable:Boolean [read-write]Implementation
public function get editable():Boolean
public function set editable(value:Boolean):void
| text | property |
text:String [read-write]Implementation
public function get text():String
public function set text(value:String):void
| Text | () | constructor |
public function Text(parent:DisplayObjectContainer = null, xpos:Number = 0, ypos:Number = 0, text:String = "")Constructor
Parametersparent: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 (default = "") — The initial text to display in this component.
|
| addChildren | () | method |
protected override function addChildren():voidCreates and adds the child display objects of this component.
| draw | () | method |
public override function draw():voidDraws the visual ui of the component.
| init | () | method |
protected override function init():voidInitializes the component.