Packagecom.gestureworks.cml.element
Classpublic class TLF
InheritanceTLF Inheritance ElementFactory Inheritance flash.display.Sprite

The TLF element provides access to AS3's TLF system within CML. The input is in the form of XML, and prefixed with AS3's namespace. Use the native flashx.textLayout.elements.TextFlow and flashx.textLayout.formats.TextLayoutFormat classes when developing in AS3.
     
         Paragraph1
         Paragraph2
         Paragraph3
     
     

See also

flashx.textLayout.elements.TextFlow;


Public Properties
 PropertyDefined By
 Inheritedalpha : Number
[override] [write-only] sets the alpha for display objects
ElementFactory
  backgroundAlpha : Number
sets the background alpha
TLF
  backgroundColor : uint
sets the background color
TLF
 Inheritedblur : Boolean
Sets the drop shadow effect
ElementFactory
 Inheritedbottom : Number
sets the bottom value
ElementFactory
 Inheritedclass_ : String
Object's css class;
ElementFactory
 InheritedclassName : String
sets the class name of displayobject
ElementFactory
 InheritedcmlIndex : int
sets the cml index
ElementFactory
 InheriteddebugStyle : *
sets the debug style
ElementFactory
 InheriteddisplayEvents : String
Use for dispatch completes.
ElementFactory
 InheriteddropShadow : Boolean
Sets the drop shadow effect
ElementFactory
  font : String
font name, use CFF embeded fonts
TLF
  height : Number
[override] container height
TLF
 InheritedheightPercent : String
sets the height percent of display object
ElementFactory
 InheritedhorizontalCenter : Number
sets the horizontal center of display object
ElementFactory
 Inheritedid : String
sets the id of child
ElementFactory
 Inheritedindex : int
sets the index of display object
ElementFactory
 Inheritedleft : Number
sets left value
ElementFactory
 InheritedpropertyStates : Array
Deprecated: Please Use state
ElementFactory
 Inheritedright : Number
sets the right value
ElementFactory
 Inheritedscale : Number
Sets both the x and y scale values
ElementFactory
 InheritedscaleX : Number
[override] Sets width of the display object in pixels
ElementFactory
 InheritedscaleY : Number
[override] Sets width of the display object in pixels
ElementFactory
 Inheritedstate : Array
property states array
ElementFactory
 Inheritedtop : Number
sets top value
ElementFactory
 InheritedverticalCenter : Number
sets the vertical center of display object
ElementFactory
  width : Number
[override] container width
TLF
 InheritedwidthPercent : String
sets the percent of width of display object
ElementFactory
Public Methods
 MethodDefined By
  
TLF()
Constructor
TLF
 Inherited
clone():*
Returns clone of self
ElementFactory
 Inherited
CML callback
ElementFactory
  
dispose():void
[override] Dispose method
TLF
  
init():void
[override] Initialisation method
TLF
  
input(value:String):void
Input must be prefixed with AS3's namespace: Paragraph1 Paragraph2 Paragraph3
TLF
  
parseCML(cml:XMLList):XMLList
[override] parses cml file
TLF
 Inherited
postparseCML(cml:XMLList):void
post parses the cml file
ElementFactory
 Inherited
updateProperties(state:Number = 0):void
this method updates the properties
ElementFactory
Property Detail
backgroundAlphaproperty
backgroundAlpha:Number

sets the background alpha


Implementation
    public function get backgroundAlpha():Number
    public function set backgroundAlpha(value:Number):void
backgroundColorproperty 
backgroundColor:uint

sets the background color


Implementation
    public function get backgroundColor():uint
    public function set backgroundColor(value:uint):void
fontproperty 
font:String

font name, use CFF embeded fonts


Implementation
    public function get font():String
    public function set font(value:String):void
heightproperty 
height:Number[override]

container height


Implementation
    public function get height():Number
    public function set height(value:Number):void
widthproperty 
width:Number[override]

container width


Implementation
    public function get width():Number
    public function set width(value:Number):void
Constructor Detail
TLF()Constructor
public function TLF()

Constructor

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

Dispose method

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

Initialisation method

input()method 
public function input(value:String):void

Input must be prefixed with AS3's namespace:

         
             Paragraph1
             Paragraph2
             Paragraph3
         
         

Parameters

value:String — string

parseCML()method 
override public function parseCML(cml:XMLList):XMLList

parses cml file

Parameters

cml:XMLList

Returns
XMLList