BasicTextBlock

Kind of class: public class
Package:
Inherits from:
  • Sprite
Version: 10 Sep 2010 Renamed from TextBlock to BasicTextBlock
05 Apr 2010
Author: John Polacek, john@johnpolacek.com
Classpath: com.johnpolacek.text.BasicTextBlock
File last modified: Saturday, 11 September 2010, 16:38:21
The BasicTextBlock class provides a simple, efficient way to display text in a TextField within certain parameters
Example

  • Use BasicTextBlock to create text for a button.
    var textFormat:TextFormat = new TextFormat("Trebuchet MS", 14, 0x111111);
    var buttonText:BasicTextBlock = new BasicTextBlock("Click Me!", 0, textFormat);
    

Summary

Constructor
  • BasicTextBlock (txt:String = "", w:int, f:TextFormat = null, oX:int, oY:int)
Instance properties

Constructor

BasicTextBlock

function BasicTextBlock(txt:String = "", w:int, f:TextFormat = null, oX:int, oY:int)

Instance properties

text

text:String(read,write)

textfield

textfield:TextField = new TextField()(read,write)

Contains the text.