Package | com.gestureworks.cml.element |
Class | public class Text |
Inheritance | Text TextFactory flash.text.TextField |
Subclasses | TextElement |
var txt:Text = new Text(); txt.x = 200; txt.y = 200; txt.font = "OpenSansBold"; txt.fontSize = 30; txt.color = 0xFF0000; addChild(txt);
See also
Property | Defined By | ||
---|---|---|---|
autoSize : String [override]
Controls automatic sizing and alignment of text fields. | TextFactory | ||
class_ : String
Object's css class;
| TextFactory | ||
className : String
sets the class name of displayobject
| TextFactory | ||
cmlIndex : int
Sets the cml index
| TextFactory | ||
color : uint
Sets the color of the text in a text field
| TextFactory | ||
font : String
Sets the font of the text
| TextFactory | ||
fontSize : Number
Sets the font size of the text
| TextFactory | ||
gridFitType : String [override]
The type of grid fitting used for this text field. | TextFactory | ||
height : Number [override]
Sets height of text text
| TextFactory | ||
horizontalCenter : Number
Sets the horizontal center
| TextFactory | ||
htmlText : String [override]
contains html representation of text field contents
| TextFactory | ||
id : String
Sets the id
| TextFactory | ||
index : int
specify the text index
| TextFactory | ||
kerning : Boolean
Sets the gap between certain character pairs
| TextFactory | ||
leading : Number
Sets the line spacing of text
| TextFactory | ||
letterSpacing : 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 | ||
propertyStates : Array Deprecated: Please Use state | TextFactory | ||
scrollable : Boolean
Sets whether or not the text is scrollable. | TextFactory | ||
state : Array
property states array
| TextFactory | ||
text : String [override]
A string that is the current text in the text field. | TextFactory | ||
textAlign : String
Sets the allignment of text in text field
| TextFactory | ||
textBitmap : Boolean
Sets whether the text is left to scale as vector or gets locked as a bitmap. | TextFactory | ||
textColor : uint [override]
Sets the color of the text in a text field
| TextFactory | ||
textFormat : TextFormat
creates textformat variable
| TextFactory | ||
textFormatColor : uint Deprecated: Please Use color
Sets the text format color
| TextFactory | ||
textSize : Number
Sets the text size of the text
| TextFactory | ||
type : String [override]
type of text field
| TextFactory | ||
underline : Boolean
indicates whether text is underlined or not
| TextFactory | ||
verticalAlign : Boolean
Sets the vertical allignment of text field
| TextFactory | ||
verticalCenter : Number
Sets the vertical center
| TextFactory | ||
y : Number [override]
Sets y position of text
| TextFactory |
Method | Defined By | ||
---|---|---|---|
Text() | Text | ||
clone():* [override]
Returns clone of self
| Text | ||
displayComplete():void | Text | ||
dispose():void [override] | Text | ||
parseCML(cml:XMLList):XMLList
parses the cml file
| TextFactory | ||
postparseCML(cml:XMLList):void
post parse method
| TextFactory | ||
updateProperties(state:Number = 0):void
pdate properties
| TextFactory |
paddingBottom | property |
public var paddingBottom:Number = 0
paddingLeft | property |
public var paddingLeft:Number = 0
paddingRight | property |
public var paddingRight:Number = 0
paddingTop | property |
public var paddingTop:Number = 0
Text | () | Constructor |
public function Text()
clone | () | method |
override public function clone():*
Returns clone of self
Returns* |
displayComplete | () | method |
public function displayComplete():void
dispose | () | method |
override public function dispose():void