Package | com.bit101.components |
Class | public class Label |
Inheritance | Label ![]() ![]() |
Property | Defined By | ||
---|---|---|---|
autoSize : Boolean
Gets / sets whether or not this Label will autosize.
|
Label | ||
![]() |
enabled : Boolean
Sets/gets whether this component is enabled or not.
|
Component | |
![]() |
height : Number [override]
Sets/gets the height of the component.
|
Component | |
![]() |
tag : int
Sets/gets in integer that can identify the component.
|
Component | |
text : String
Gets / sets the text of this Label.
|
Label | ||
textField : TextField [read-only]
Gets the internal TextField of the label if you need to do further customization of it.
|
Label | ||
![]() |
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 | ||
---|---|---|---|
_autoSize : Boolean = true | Label | ||
![]() |
_enabled : Boolean = true | Component | |
![]() |
_height : Number = 0 | Component | |
![]() |
Ronda : Class | Component | |
![]() |
_tag : int = -1 | Component | |
_text : String | Label | ||
_tf : TextField | Label | ||
![]() |
_width : Number = 0 | Component |
Method | Defined By | ||
---|---|---|---|
Label(parent:DisplayObjectContainer = null, xpos:Number = 0, ypos:Number = 0, text:String)
Constructor
|
Label | ||
draw():void
[override]
Draws the visual ui of the component.
|
Label | ||
![]() |
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.
|
Label | ||
![]() |
getShadow(dist:Number, knockout:Boolean = false):DropShadowFilter
DropShadowFilter factory method, used in many of the components.
|
Component | |
init():void
[override]
Initializes the component.
|
Label | ||
![]() |
invalidate():void
Marks the component to be redrawn on the next frame.
|
Component | |
![]() |
onInvalidate(event:Event):void
Called one frame after invalidate is called.
|
Component |
_autoSize | property |
protected var _autoSize:Boolean = true
_text | property |
protected var _text:String
_tf | property |
protected var _tf:TextField
autoSize | property |
autoSize:Boolean
Gets / sets whether or not this Label will autosize.
public function get autoSize():Boolean
public function set autoSize(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]
Gets the internal TextField of the label if you need to do further customization of it.
public function get textField():TextField
Label | () | Constructor |
public function Label(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 string to use as the initial text 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.