Packagecom.google.analytics.debug
Classpublic class Label
InheritanceLabel Inheritance UISprite Inheritance flash.display.Sprite
SubclassesAlert, Debug, Info, Warning

The label sprite.



Public Properties
 PropertyDefined by
 Inheritedalignement : Align
Indicates the alignement reference of this sprite.
UISprite
  count : uint = 0
[static]
Label
 InheritedforcedHeight : uint
UISprite
 InheritedforcedWidth : uint
UISprite
 Inheritedmargin : Margin
Indicates the margin reference of this sprite.
UISprite
  stickToEdge : Boolean
Indicates if the border of the label stick to the edge.
Label
  tag : String
the CSS tag used for the label.
Label
  text : String
The text of the label.
Label
Protected Properties
 PropertyDefined by
 InheritedalignTarget : DisplayObject
Indicates the display object align target.
UISprite
 InheritedlistenResize : Boolean
Indicates if the resize process is listening.
UISprite
  selectable : Boolean
Indicates if the text is selectabled in the Label display.
Label
Public Methods
 MethodDefined by
  
Label(text:String = "", tag:String = "uiLabel", color:uint = 0, alignement:Align = null, stickToEdge:Boolean = false)
Creates a new Label instance.
Label
 Inherited
alignTo(alignement:Align, target:DisplayObject = null):void
Align the specified display with the specified alignement value.
UISprite
  
appendText(value:String, newtag:String = ""):void
Appends more text to the label, with the option to change the CSS tag.
Label
  
onLink(event:TextEvent):void
Invoked when a AS link in the text is clicked.
Label
 Inherited
resize():void
Resize the display.
UISprite
Protected Methods
 MethodDefined by
  
dispose():void
Dispose the current Label instance.
Label
  
layout():void
Initialize the layout of all elements in the Label object.
Label
 Inherited
onResize(event:Event):void
Invoked when the stage is resized.
UISprite
Property detail
countproperty
public static var count:uint = 0
selectableproperty 
protected var selectable:Boolean

Indicates if the text is selectabled in the Label display.

stickToEdgeproperty 
public var stickToEdge:Boolean

Indicates if the border of the label stick to the edge. note: in case of rounded corner, the corner(s) sticked to an edge would not be rounded

tagproperty 
tag:String  [read-write]

the CSS tag used for the label.

Implementation
    public function get tag():String
    public function set tag(value:String):void
textproperty 
text:String  [read-write]

The text of the label.

Implementation
    public function get text():String
    public function set text(value:String):void
Constructor detail
Label()constructor
public function Label(text:String = "", tag:String = "uiLabel", color:uint = 0, alignement:Align = null, stickToEdge:Boolean = false)

Creates a new Label instance.

Parameters
text:String (default = "") — The text of the label.
 
tag:String (default = "uiLabel") — The of the class used to render the text (default "uiLabel"). See Style.
 
color:uint (default = 0) — The color of the label.
 
alignement:Align (default = null) — The flag to defines the stickToEdge value.
 
stickToEdge:Boolean (default = false)
Method detail
appendText()method
public function appendText(value:String, newtag:String = ""):void

Appends more text to the label, with the option to change the CSS tag.

Parameters
value:String
 
newtag:String (default = "")
dispose()method 
protected override function dispose():void

Dispose the current Label instance.

layout()method 
protected override function layout():void

Initialize the layout of all elements in the Label object.

onLink()method 
public function onLink(event:TextEvent):void

Invoked when a AS link in the text is clicked.

Parameters
event:TextEvent