Packagevn.karaokeplayer.lyrics
Classpublic class TextBlock
InheritanceTextBlock Inheritance flash.display.Sprite
Implementsflash.display.IBitmapDrawable, IBlock

TODO: use object pool to optimize memmory and performance The smallest block of texts which share the same speed



Public Properties
 PropertyDefined by
  begin : Number
[read-only]
TextBlock
  completed : ISignal
[read-only]
TextBlock
  duration : Number
[read-only]
TextBlock
  embedFonts : Boolean = false
TextBlock
  end : Number
[read-only]
TextBlock
  font : String = "Verdana"
TextBlock
  height : Number
TextBlock
  next : IBlock
TextBlock
  noSpaceWidth : Number
[read-only]
TextBlock
  position : Number
TextBlock
  size : Number = 30
TextBlock
  strokeColor : uint = 0xFFFFFF
TextBlock
  syncStrokeColor : uint = 0xFFFFFF
TextBlock
  syncTextColor : uint = 0xFF9600
TextBlock
  text : String
[read-only]
TextBlock
  textColor : uint = 0x8AD420
TextBlock
  width : Number
TextBlock
Public Methods
 MethodDefined by
  
TextBlock
  
dispose():void
TextBlock
  
init(blockInfo:BlockInfo):void
TextBlock
  
reset():void
TextBlock
  
setStyle(normalStyle:LyricStyle, syncStyle:LyricStyle):void
TextBlock
Public Constants
 ConstantDefined by
  VERSION : String = "0.8.71"
[static]
TextBlock
Property detail
beginproperty
begin:Number  [read-only]Implementation
    public function get begin():Number
completedproperty 
completed:ISignal  [read-only]Implementation
    public function get completed():ISignal
durationproperty 
duration:Number  [read-only]Implementation
    public function get duration():Number
embedFontsproperty 
public var embedFonts:Boolean = false
endproperty 
end:Number  [read-only]Implementation
    public function get end():Number
fontproperty 
public var font:String = "Verdana"
heightproperty 
height:Number  [read-write]Implementation
    public function get height():Number
    public function set height(value:Number):void
nextproperty 
next:IBlock  [read-write]Implementation
    public function get next():IBlock
    public function set next(value:IBlock):void
noSpaceWidthproperty 
noSpaceWidth:Number  [read-only]Implementation
    public function get noSpaceWidth():Number
positionproperty 
position:Number  [read-write]Implementation
    public function get position():Number
    public function set position(value:Number):void
sizeproperty 
public var size:Number = 30
strokeColorproperty 
public var strokeColor:uint = 0xFFFFFF
syncStrokeColorproperty 
public var syncStrokeColor:uint = 0xFFFFFF
syncTextColorproperty 
public var syncTextColor:uint = 0xFF9600
textproperty 
text:String  [read-only]Implementation
    public function get text():String
textColorproperty 
public var textColor:uint = 0x8AD420
widthproperty 
width:Number  [read-write]Implementation
    public function get width():Number
    public function set width(value:Number):void
Constructor detail
TextBlock()constructor
public function TextBlock()
Method detail
dispose()method
public function dispose():void
init()method 
public function init(blockInfo:BlockInfo):voidParameters
blockInfo:BlockInfo
reset()method 
public function reset():void
setStyle()method 
public function setStyle(normalStyle:LyricStyle, syncStyle:LyricStyle):voidParameters
normalStyle:LyricStyle
 
syncStyle:LyricStyle
Constant detail
VERSIONconstant
public static const VERSION:String = "0.8.71"