Label

TextField
Label

A static text label.  Left-aligned and using the CommonText font.  The Label class extends the TextField class so all its properties are available.  For example to change the label use the label.text property.

Summary
LabelA static text label.
Public static constants
defaultColorA light default color for the text.
defaultFontSizeA medium default size for the font.
LabelCreate a static, left-aligned text label using the <CommonFont> font.
nameSet the name of the label display object instance.
colorGet the color used to render the text font.
colorSet the default text format color
WidgetInterface
activeSets the state of the widget to active or inactive.
isActiveIndicates whether the widget is active or not.
disposeDispose of all resources used or referenced in the instance.

Public static constants

defaultColor

public static const defaultColor: int

A light default color for the text.

defaultFontSize

public static const defaultFontSize: int

A medium default size for the font.

Label

public function Label(labelText: String,  
color: uint = defaultColor,
fontSize: uint = defaultFontSize)

Create a static, left-aligned text label using the <CommonFont> font.

Parameters

labelTexttext to display
colortext font color
fontSizefont size

name

public override function set name(labelName: String):void

Set the name of the label display object instance.

color

public function get color():uint

Get the color used to render the text font.

color

public function set color(value: uint):void

Set the default text format color

WidgetInterface

active

public function set active(state: Boolean):void

Sets the state of the widget to active or inactive.

Parameters

stateTrue to activate, false otherwise.

isActive

public function get isActive():Boolean

Indicates whether the widget is active or not.

Returns

True if active, false otherwise.

dispose

public function dispose():void

Dispose of all resources used or referenced in the instance.

Widgets are required to implement this interface.
public static const defaultColor: int
A light default color for the text.
public static const defaultFontSize: int
A medium default size for the font.
public function Label(labelText: String,  
color: uint = defaultColor,
fontSize: uint = defaultFontSize)
Create a static, left-aligned text label using the CommonFont font.
public override function set name(labelName: String):void
Set the name of the label display object instance.
public function get color():uint
Get the color used to render the text font.
public function set active(state: Boolean):void
Sets the state of the widget to active or inactive.
public function get isActive():Boolean
Indicates whether the widget is active or not.
public function dispose():void
Dispose of all resources used or referenced in the instance.
Embeds a common text font used by all autotelicum widgets.
Close