Packageverlocity.display.ui
Classpublic class Text
InheritanceText Inheritance UIElement Inheritance flash.display.Sprite
Subclasses Button, Message, Ticker



Public Properties
 PropertyDefined By
 InheritedoriginX : Number
UIElement
 InheritedoriginY : Number
UIElement
Protected Properties
 PropertyDefined By
 InheritednScale : Number
UIElement
  tfTextField : TextField
Text
  tfTextFormat : TextFormat
Text
Public Methods
 MethodDefined By
  
Text(sText:String = null, tfFormat:TextFormat = null)
Text
 Inherited
Clear():void
Clears all graphics drawn on the UI element.
UIElement
  
Dispose():void
[override]
Text
  
DrawRect(uiColor:uint = 0xFFFFFF, nAlpha:Number = 1, iWidth:int = 0, iHeight:int = 0, bLine:Boolean = false, iLineThickness:int = 1, uiLineColor:uint = 0xFFFFFF, nLineAlpha:Number = 1, bRounded:Boolean = false, iRoundness:int = 10, iOffsetX:int = 0, iOffsetY:int = 1):void
[override]
Text
  
GetHeight():int
Text
 Inherited
GetScale():Number
Returns the scale of the UI element.
UIElement
  
GetWidth():int
Text
 Inherited
ResetPos():void
Resets the X and Y position of the UI element to its original spawn position.
UIElement
  
SetHeight(iHeight:int):void
Text
 Inherited
SetOriginPos(nPosX:Number, nPosY:Number):void
Overrides origin position
UIElement
 Inherited
SetPos(nPosX:Number, nPosY:Number):void
Sets the X and Y position of the UI element.
UIElement
 Inherited
SetScale(nSetScale:Number):void
Sets the scale of the UI element.
UIElement
  
SetText(sText:String, tfFormat:TextFormat = null):void
Text
  
SetTextColor(uiColor:uint):void
Text
  
SetWidth(iWidth:int):void
Text
Property Detail
tfTextFieldproperty
protected var tfTextField:TextField

tfTextFormatproperty 
protected var tfTextFormat:TextFormat

Constructor Detail
Text()Constructor
public function Text(sText:String = null, tfFormat:TextFormat = null)



Parameters
sText:String (default = null)
 
tfFormat:TextFormat (default = null)
Method Detail
Dispose()method
override public function Dispose():void

DrawRect()method 
override public function DrawRect(uiColor:uint = 0xFFFFFF, nAlpha:Number = 1, iWidth:int = 0, iHeight:int = 0, bLine:Boolean = false, iLineThickness:int = 1, uiLineColor:uint = 0xFFFFFF, nLineAlpha:Number = 1, bRounded:Boolean = false, iRoundness:int = 10, iOffsetX:int = 0, iOffsetY:int = 1):void

Parameters

uiColor:uint (default = 0xFFFFFF)
 
nAlpha:Number (default = 1)
 
iWidth:int (default = 0)
 
iHeight:int (default = 0)
 
bLine:Boolean (default = false)
 
iLineThickness:int (default = 1)
 
uiLineColor:uint (default = 0xFFFFFF)
 
nLineAlpha:Number (default = 1)
 
bRounded:Boolean (default = false)
 
iRoundness:int (default = 10)
 
iOffsetX:int (default = 0)
 
iOffsetY:int (default = 1)

GetHeight()method 
public function GetHeight():int

Returns
int
GetWidth()method 
public function GetWidth():int

Returns
int
SetHeight()method 
public function SetHeight(iHeight:int):void

Parameters

iHeight:int

SetText()method 
public function SetText(sText:String, tfFormat:TextFormat = null):void

Parameters

sText:String
 
tfFormat:TextFormat (default = null)

SetTextColor()method 
public function SetTextColor(uiColor:uint):void

Parameters

uiColor:uint

SetWidth()method 
public function SetWidth(iWidth:int):void

Parameters

iWidth:int