| Package | com.google.analytics.debug |
| Class | public class Label |
| Inheritance | Label UISprite flash.display.Sprite |
| Subclasses | Alert, Debug, Info, Warning |
| Property | Defined by | ||
|---|---|---|---|
![]() | alignement : Align
Indicates the alignement reference of this sprite.
| UISprite | |
| count : uint = 0 [static]
| Label | ||
![]() | forcedHeight : uint | UISprite | |
![]() | forcedWidth : uint | UISprite | |
![]() | margin : 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 | ||
| Property | Defined by | ||
|---|---|---|---|
![]() | alignTarget : DisplayObject
Indicates the display object align target.
| UISprite | |
![]() | listenResize : Boolean
Indicates if the resize process is listening.
| UISprite | |
| selectable : Boolean
Indicates if the text is selectabled in the Label display.
| Label | ||
| Method | Defined by | ||
|---|---|---|---|
|
Label(text:String = "", tag:String = "uiLabel", color:uint = 0, alignement:Align = null, stickToEdge:Boolean = false)
Creates a new Label instance.
| Label | ||
![]() |
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 | ||
![]() |
resize():void
Resize the display.
| UISprite | |
| Method | Defined by | ||
|---|---|---|---|
|
dispose():void
Dispose the current Label instance.
| Label | ||
|
layout():void
Initialize the layout of all elements in the Label object.
| Label | ||
![]() |
onResize(event:Event):void
Invoked when the stage is resized.
| UISprite | |
| count | property |
public static var count:uint = 0
| selectable | property |
protected var selectable:BooleanIndicates if the text is selectabled in the Label display.
| stickToEdge | property |
public var stickToEdge:BooleanIndicates 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
| tag | property |
tag:String [read-write]the CSS tag used for the label.
Implementation public function get tag():String
public function set tag(value:String):void
| text | property |
text:String [read-write]The text of the label.
Implementation public function get text():String
public function set text(value:String):void
| Label | () | constructor |
public function Label(text:String = "", tag:String = "uiLabel", color:uint = 0, alignement:Align = null, stickToEdge:Boolean = false)Creates a new Label instance.
Parameterstext: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) |
| appendText | () | method |
public function appendText(value:String, newtag:String = ""):voidAppends more text to the label, with the option to change the CSS tag.
Parametersvalue:String |
|
newtag:String (default = "") |
| dispose | () | method |
protected override function dispose():voidDispose the current Label instance.
| layout | () | method |
protected override function layout():voidInitialize the layout of all elements in the Label object.
| onLink | () | method |
public function onLink(event:TextEvent):voidInvoked when a AS link in the text is clicked.
Parametersevent:TextEvent |