Packagecom.gestureworks.cml.factories
Classpublic class ElementFactory
InheritanceElementFactory Inheritance flash.display.Sprite
Implements IElement, ICSS
Subclasses BitmapFactory, CircleText, ColorPicker, ContainerFactory, DatePicker, Dial, DropDownMenu, Element, FlickrQuery, GestureList, ImageList, MP3, MP3Factory, Stepper, SWC, SWF, Switch, TLF, Toggle, WAV, YouTube

The ElementFactory is the base class for all Elements. It is an abstract class that is not meant to be called directly.

See also

com.gestureworks.cml.factories.GraphicFactory
com.gestureworks.cml.factories.ObjectFactory


Public Properties
 PropertyDefined By
  alpha : Number
[override] [write-only] sets the alpha for display objects
ElementFactory
  blur : Boolean
Sets the drop shadow effect
ElementFactory
  bottom : Number
sets the bottom value
ElementFactory
  class_ : String
Object's css class;
ElementFactory
  className : String
sets the class name of displayobject
ElementFactory
  cmlIndex : int
sets the cml index
ElementFactory
  debugStyle : *
sets the debug style
ElementFactory
  displayEvents : String
Use for dispatch completes.
ElementFactory
  dropShadow : Boolean
Sets the drop shadow effect
ElementFactory
  height : Number
[override] Sets width of the display object in pixels
ElementFactory
  heightPercent : String
sets the height percent of display object
ElementFactory
  horizontalCenter : Number
sets the horizontal center of display object
ElementFactory
  id : String
sets the id of child
ElementFactory
  index : int
sets the index of display object
ElementFactory
  left : Number
sets left value
ElementFactory
  propertyStates : Array
Deprecated: Please Use state
ElementFactory
  right : Number
sets the right value
ElementFactory
  scale : Number
Sets both the x and y scale values
ElementFactory
  scaleX : Number
[override] Sets width of the display object in pixels
ElementFactory
  scaleY : Number
[override] Sets width of the display object in pixels
ElementFactory
  state : Array
property states array
ElementFactory
  top : Number
sets top value
ElementFactory
  verticalCenter : Number
sets the vertical center of display object
ElementFactory
  width : Number
[override] Sets width of the display object in pixels
ElementFactory
  widthPercent : String
sets the percent of width of display object
ElementFactory
Public Methods
 MethodDefined By
  
Constructor
ElementFactory
  
clone():*
Returns clone of self
ElementFactory
  
CML callback
ElementFactory
  
dispose():void
Calls the Dispose method for each child possessing a Dispose method then removes all children.
ElementFactory
  
init():void
Initialization function
ElementFactory
  
parseCML(cml:XMLList):XMLList
parses cml file
ElementFactory
  
postparseCML(cml:XMLList):void
post parses the cml file
ElementFactory
  
updateProperties(state:Number = 0):void
this method updates the properties
ElementFactory
Property Detail
alphaproperty
alpha:Number  [write-only] [override]

sets the alpha for display objects

The default value is 0.


Implementation
    public function set alpha(value:Number):void
blurproperty 
blur:Boolean

Sets the drop shadow effect

The default value is false.


Implementation
    public function get blur():Boolean
    public function set blur(value:Boolean):void
bottomproperty 
bottom:Number

sets the bottom value


Implementation
    public function get bottom():Number
    public function set bottom(value:Number):void
class_property 
class_:String

Object's css class;


Implementation
    public function get class_():String
    public function set class_(value:String):void
classNameproperty 
className:String

sets the class name of displayobject


Implementation
    public function get className():String
    public function set className(value:String):void
cmlIndexproperty 
cmlIndex:int

sets the cml index


Implementation
    public function get cmlIndex():int
    public function set cmlIndex(value:int):void
debugStyleproperty 
debugStyle:*

sets the debug style


Implementation
    public function get debugStyle():*
    public function set debugStyle(value:any):void
displayEventsproperty 
displayEvents:String

Use for dispatch completes. Can be set to whatever string needed.


Implementation
    public function get displayEvents():String
    public function set displayEvents(value:String):void
dropShadowproperty 
dropShadow:Boolean

Sets the drop shadow effect

The default value is false.


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

Sets width of the display object in pixels

The default value is 0.


Implementation
    public function get height():Number
    public function set height(value:Number):void
heightPercentproperty 
heightPercent:String

sets the height percent of display object


Implementation
    public function get heightPercent():String
    public function set heightPercent(value:String):void
horizontalCenterproperty 
horizontalCenter:Number

sets the horizontal center of display object

The default value is 0.


Implementation
    public function get horizontalCenter():Number
    public function set horizontalCenter(value:Number):void
idproperty 
id:String

sets the id of child


Implementation
    public function get id():String
    public function set id(value:String):void
indexproperty 
index:int

sets the index of display object


Implementation
    public function get index():int
    public function set index(value:int):void
leftproperty 
left:Number

sets left value


Implementation
    public function get left():Number
    public function set left(value:Number):void
propertyStatesproperty 
public var propertyStates:Array
Deprecated: Please Use state

rightproperty 
right:Number

sets the right value


Implementation
    public function get right():Number
    public function set right(value:Number):void
scaleproperty 
scale:Number

Sets both the x and y scale values

The default value is 1.


Implementation
    public function get scale():Number
    public function set scale(value:Number):void
scaleXproperty 
scaleX:Number[override]

Sets width of the display object in pixels

The default value is 0.


Implementation
    public function get scaleX():Number
    public function set scaleX(value:Number):void
scaleYproperty 
scaleY:Number[override]

Sets width of the display object in pixels

The default value is 0.


Implementation
    public function get scaleY():Number
    public function set scaleY(value:Number):void
stateproperty 
public var state:Array

property states array

topproperty 
top:Number

sets top value


Implementation
    public function get top():Number
    public function set top(value:Number):void
verticalCenterproperty 
verticalCenter:Number

sets the vertical center of display object

The default value is 0.


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

Sets width of the display object in pixels

The default value is 0.


Implementation
    public function get width():Number
    public function set width(value:Number):void
widthPercentproperty 
widthPercent:String

sets the percent of width of display object


Implementation
    public function get widthPercent():String
    public function set widthPercent(value:String):void
Constructor Detail
ElementFactory()Constructor
public function ElementFactory()

Constructor

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

Returns clone of self

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

CML callback

dispose()method 
public function dispose():void

Calls the Dispose method for each child possessing a Dispose method then removes all children. This is the root destructor intended to be called by overriding dispose functions.

init()method 
public function init():void

Initialization function

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

parses cml file

Parameters

cml:XMLList

Returns
XMLList
postparseCML()method 
public function postparseCML(cml:XMLList):void

post parses the cml file

Parameters

cml:XMLList

updateProperties()method 
public function updateProperties(state:Number = 0):void

this method updates the properties

Parameters

state:Number (default = 0)