Packagecom.gestureworks.cml.elements
Classpublic class TLF
InheritanceTLF Inheritance TouchContainer Inheritance com.gestureworks.core.TouchSprite

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
 InheritedautoShuffle : Boolean
autoshuffles
TouchContainer
  backgroundAlpha : Number
sets the background alpha
TLF
  backgroundColor : uint
sets the background color
TLF
 InheritedchildList : ChildList
Returns the object's childList.
TouchContainer
 InheritedclassName : String
sets the class name of displayobject
TouchContainer
 InheritedcloneExclusions : Vector.<String>
[read-only] Returns a list of properties to exclude when cloning this object
TouchContainer
 InheritedcmlIndex : int
Returns the index created by the CML parser.
TouchContainer
 InheriteddimensionsTo : Object
Sets the dimensions of TouchContainer to given object
TouchContainer
 InheriteddropShadow : Boolean
Sets the drop shadow effect
TouchContainer
  font : String
font name, use CFF embeded fonts
TLF
 Inheritedgroup : String
TouchContainer
  height : Number
[override] container height
TLF
 InheritedheightPercent : Number
sets the height of the container
TouchContainer
 Inheritedid : String
Returns the object's id.
TouchContainer
 Inheritedlayout : *
specifies the type of layout
TouchContainer
 InheritedlayoutList : Dictionary
TouchContainer
 InheritedmouseChildren : Boolean
[override] sets the mousechildren value to true or false.
TouchContainer
 InheritedpaddingBottom : Number
Sets the number of pixels between the container's bottom border and the bottom of its content area.
TouchContainer
 InheritedpaddingLeft : Number
Sets the number of pixels between the component's left border and the left edge of its content area.
TouchContainer
 InheritedpaddingRight : Number
Sets the number of pixels between the component's right border and the right edge of its content area.
TouchContainer
 InheritedpaddingTop : Number
Sets the number of pixels between the container's top border and the top of its content area.
TouchContainer
 Inheritedposition : *
Sets the position
TouchContainer
 InheritedrelativeX : Boolean
When set true this containers children's x position will be laid out relatively to each other.
TouchContainer
 InheritedrelativeY : Boolean
When set true this containers children's y position will be laid out relatively to each other.
TouchContainer
 Inheritedsound : String
TouchContainer
 Inheritedstate : Dictionary
TouchContainer
 InheritedstateId : *
Returns the current state id.
TouchContainer
  text : String
sets text
TLF
 InheritedtoBitmap : Boolean
TouchContainer
  width : Number
[override] container width
TLF
 InheritedwidthPercent : Number
sets the width of the container
TouchContainer
Protected Properties
 PropertyDefined By
 InheritedcmlGestureList : Object
TouchContainer
Public Methods
 MethodDefined By
  
TLF()
Constructor
TLF
 Inherited
TouchContainer
 Inherited
method searches the child and adds to the list
TouchContainer
 Inherited
addChild(child:DisplayObject):DisplayObject
[override] Adds child to display list and, if not already added, the child list
TouchContainer
 Inherited
addChildAt(child:DisplayObject, index:int):DisplayObject
[override] Adds child to display list and, if not already added, the child list
TouchContainer
 Inherited
applyLayout(value:* = null):void
Apply the containers layout
TouchContainer
 Inherited
childToList(id:String, child:*):void
child appended to the childlist
TouchContainer
 Inherited
clone():*
Clone method
TouchContainer
  
dispose():void
[override] Destructor
TLF
 Inherited
getElementById(id:String):*
Searches CML childList by id.
TouchContainer
 Inherited
getElementsByClassName(className:String):Array
Searches the CML childList by className.
TouchContainer
 Inherited
getElementsByTagName(tagName:Class):Array
Searches the CML childList by tagName as Class.
TouchContainer
  
init():void
[override] Initialisation method
TLF
  
input(value:XMLList):void
Input must be prefixed with AS3's namespace: Paragraph1 Paragraph2 Paragraph3
TLF
 Inherited
loadState(sId:* = null, recursion:Boolean = false):void
Loads state by index number.
TouchContainer
 Inherited
makeGestureList(value:XMLList):Object
Creates gestureList object from XML
TouchContainer
  
parseCML(cml:XMLList):XMLList
[override] parses cml file
TLF
 Inherited
postparseCML(cml:XMLList):void
Abstract method allows the setting of a postparse CML routine.
TouchContainer
 Inherited
querySelector(selector:String):*
Searches the CML childList by selector.
TouchContainer
 Inherited
querySelectorAll(selector:*):Array
Search the CML childList by selector.
TouchContainer
 Inherited
removeChild(child:DisplayObject):DisplayObject
[override] Removes child from display list and, if not already removed, the child list
TouchContainer
 Inherited
removeChildAt(index:int):DisplayObject
[override] Removes child from display list and, if not already removed, the child list
TouchContainer
 Inherited
removeChildren(beginIndex:int = 0, endIndex:int = 2147483647):void
[override] Removes children from display list and, if not already removed, the child list
TouchContainer
 Inherited
saveState(sId:* = null, recursion:Boolean = false):void
Save state by index number.
TouchContainer
 Inherited
searchChildren(value:*, returnType:Class = null):*
This method does a depth first search of childLists.
TouchContainer
 Inherited
method sets the dimensions of each child
TouchContainer
 Inherited
tweenState(sId:* = null, tweenTime:Number = 1):void
Tween state by stateIndex from current to given state index.
TouchContainer
  
TLF
 Inherited
Updates child padding within this container
TouchContainer
 Inherited
Updates child percent dimensions within this container
TouchContainer
  
updateProperties(state:* = 0):void
[override] Custom property update to account for TLF child nodes
TLF
 Inherited
Updates child relative positions within this container
TouchContainer
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
textproperty 
text:String

sets text


Implementation
    public function get text():String
    public function set text(value:String):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

Destructor

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

Initialisation method

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

Input must be prefixed with AS3's namespace:

         
             Paragraph1
             Paragraph2
             Paragraph3
         
         

Parameters

value:XMLList — string

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

parses cml file

Parameters

cml:XMLList

Returns
XMLList
updateContainer()method 
public function updateContainer():void

updateProperties()method 
override public function updateProperties(state:* = 0):void

Custom property update to account for TLF child nodes

Parameters

state:* (default = 0)