Packagecom.gestureworks.cml.element
Classpublic class Text
InheritanceText Inheritance TextFactory Inheritance flash.text.TextField
Subclasses TextElement

The Text element displays a text fields. It has most of the functionality the the TextField and TexrFormat AS3 classes combined
                  
        var txt:Text = new Text();
        txt.x = 200;
        txt.y = 200;
        txt.font = "OpenSansBold";
        txt.fontSize = 30;            
        txt.color = 0xFF0000;        
        addChild(txt);
        
     
The TextFactory is the base class for all Text. It is an abstract class that is not meant to be called directly.

See also

SWF


Public Properties
 PropertyDefined By
 InheritedautoSize : String
[override] Controls automatic sizing and alignment of text fields.
TextFactory
 Inheritedclass_ : String
Object's css class;
TextFactory
 InheritedclassName : String
sets the class name of displayobject
TextFactory
 InheritedcmlIndex : int
Sets the cml index
TextFactory
 Inheritedcolor : uint
Sets the color of the text in a text field
TextFactory
 Inheritedfont : String
Sets the font of the text
TextFactory
 InheritedfontSize : Number
Sets the font size of the text
TextFactory
 InheritedgridFitType : String
[override] The type of grid fitting used for this text field.
TextFactory
 Inheritedheight : Number
[override] Sets height of text text
TextFactory
 InheritedhorizontalCenter : Number
Sets the horizontal center
TextFactory
 InheritedhtmlText : String
[override] contains html representation of text field contents
TextFactory
 Inheritedid : String
Sets the id
TextFactory
 Inheritedindex : int
specify the text index
TextFactory
 Inheritedkerning : Boolean
Sets the gap between certain character pairs
TextFactory
 Inheritedleading : Number
Sets the line spacing of text
TextFactory
 InheritedletterSpacing : Number
Sets the number of additional pixels to appear between each character.
TextFactory
  paddingBottom : Number = 0
Text
  paddingLeft : Number = 0
Text
  paddingRight : Number = 0
Text
  paddingTop : Number = 0
Text
 InheritedpropertyStates : Array
Deprecated: Please Use state
TextFactory
 Inheritedscrollable : Boolean
Sets whether or not the text is scrollable.
TextFactory
 Inheritedstate : Array
property states array
TextFactory
 Inheritedtext : String
[override] A string that is the current text in the text field.
TextFactory
 InheritedtextAlign : String
Sets the allignment of text in text field
TextFactory
 InheritedtextBitmap : Boolean
Sets whether the text is left to scale as vector or gets locked as a bitmap.
TextFactory
 InheritedtextColor : uint
[override] Sets the color of the text in a text field
TextFactory
 InheritedtextFormat : TextFormat
creates textformat variable
TextFactory
 InheritedtextFormatColor : uint
Deprecated: Please Use color
Sets the text format color
TextFactory
 InheritedtextSize : Number
Sets the text size of the text
TextFactory
 Inheritedtype : String
[override] type of text field
TextFactory
 Inheritedunderline : Boolean
indicates whether text is underlined or not
TextFactory
 InheritedverticalAlign : Boolean
Sets the vertical allignment of text field
TextFactory
 InheritedverticalCenter : Number
Sets the vertical center
TextFactory
 Inheritedy : Number
[override] Sets y position of text
TextFactory
Public Methods
 MethodDefined By
  
Text
  
clone():*
[override] Returns clone of self
Text
  
Text
  
dispose():void
[override]
Text
 Inherited
parseCML(cml:XMLList):XMLList
parses the cml file
TextFactory
 Inherited
postparseCML(cml:XMLList):void
post parse method
TextFactory
 Inherited
updateProperties(state:Number = 0):void
pdate properties
TextFactory
Protected Methods
 MethodDefined By
 Inherited
TextFactory
Property Detail
paddingBottomproperty
public var paddingBottom:Number = 0

paddingLeftproperty 
public var paddingLeft:Number = 0

paddingRightproperty 
public var paddingRight:Number = 0

paddingTopproperty 
public var paddingTop:Number = 0

Constructor Detail
Text()Constructor
public function Text()



Method Detail
clone()method
override public function clone():*

Returns clone of self

Returns
*
displayComplete()method 
public function displayComplete():void

dispose()method 
override public function dispose():void