Packagethanhtran.karaokeplayer.lyrics
Classpublic class TextBlock
InheritanceTextBlock Inheritance flash.display.Sprite

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



Public Properties
 PropertyDefined by
  completed : Signal
TextBlock
  duration : uint = 0
TextBlock
  embedFonts : Boolean = false
TextBlock
  font : String = "Verdana"
TextBlock
  height : Number
TextBlock
  next : TextBlock
TextBlock
  size : Number = 30
TextBlock
  strokeColor : uint = 0xFFFFFF
TextBlock
  syncStrokeColor : uint = 0xFFFFFF
TextBlock
  syncTextColor : uint = 0xFF9600
TextBlock
  text : String
TextBlock
  textColor : uint = 0x8AD420
TextBlock
  width : Number
TextBlock
Public Methods
 MethodDefined by
  
TextBlock
  
dispose():void
TextBlock
  
play():void
TODO: consider split the words and animate them equally in time (instead of text length right now)
TextBlock
  
render():void
TextBlock
  
reset():void
TextBlock
  
setStyle(normalStyle:LyricStyle, syncStyle:LyricStyle):void
TextBlock
Public Constants
 ConstantDefined by
  VERSION : String = "0.0.18"
[static]
TextBlock
Property detail
completedproperty
public var completed:Signal
durationproperty 
public var duration:uint = 0
embedFontsproperty 
public var embedFonts:Boolean = false
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 
public var next:TextBlock
noSpaceWidthproperty 
noSpaceWidth:Number  [read-only]Implementation
    karplayer_internal function get noSpaceWidth():Number
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-write]Implementation
    public function get text():String
    public function set text(value:String):void
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
play()method 
public function play():void

TODO: consider split the words and animate them equally in time (instead of text length right now)

render()method 
public function render():void
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.0.18"