| Package | com.gestureworks.cml.factories |
| Class | public class ElementFactory |
| Inheritance | ElementFactory 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 |
See also
| Property | Defined 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 | ||
| Method | Defined By | ||
|---|---|---|---|
Constructor
| ElementFactory | ||
clone():*
Returns clone of self
| ElementFactory | ||
displayComplete():void
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 | ||
| alpha | property |
alpha:Number [write-only] [override] sets the alpha for display objects
The default value is 0.
public function set alpha(value:Number):void| blur | property |
blur:BooleanSets the drop shadow effect
The default value is false.
public function get blur():Boolean public function set blur(value:Boolean):void| bottom | property |
bottom:Numbersets the bottom value
public function get bottom():Number public function set bottom(value:Number):void| class_ | property |
class_:StringObject's css class;
public function get class_():String public function set class_(value:String):void| className | property |
className:Stringsets the class name of displayobject
public function get className():String public function set className(value:String):void| cmlIndex | property |
cmlIndex:intsets the cml index
public function get cmlIndex():int public function set cmlIndex(value:int):void| debugStyle | property |
debugStyle:*sets the debug style
public function get debugStyle():* public function set debugStyle(value:any):void| displayEvents | property |
displayEvents:StringUse for dispatch completes. Can be set to whatever string needed.
public function get displayEvents():String public function set displayEvents(value:String):void| dropShadow | property |
dropShadow:BooleanSets the drop shadow effect
The default value is false.
public function get dropShadow():Boolean public function set dropShadow(value:Boolean):void| height | property |
height:Number[override] Sets width of the display object in pixels
The default value is 0.
public function get height():Number public function set height(value:Number):void| heightPercent | property |
heightPercent:Stringsets the height percent of display object
public function get heightPercent():String public function set heightPercent(value:String):void| horizontalCenter | property |
horizontalCenter:Numbersets the horizontal center of display object
The default value is 0.
public function get horizontalCenter():Number public function set horizontalCenter(value:Number):void| id | property |
id:Stringsets the id of child
public function get id():String public function set id(value:String):void| index | property |
index:intsets the index of display object
public function get index():int public function set index(value:int):void| left | property |
left:Numbersets left value
public function get left():Number public function set left(value:Number):void| propertyStates | property |
public var propertyStates:Array| right | property |
right:Numbersets the right value
public function get right():Number public function set right(value:Number):void| scale | property |
scale:NumberSets both the x and y scale values
The default value is 1.
public function get scale():Number public function set scale(value:Number):void| scaleX | property |
scaleX:Number[override] Sets width of the display object in pixels
The default value is 0.
public function get scaleX():Number public function set scaleX(value:Number):void| scaleY | property |
scaleY:Number[override] Sets width of the display object in pixels
The default value is 0.
public function get scaleY():Number public function set scaleY(value:Number):void| state | property |
public var state:Arrayproperty states array
| top | property |
top:Numbersets top value
public function get top():Number public function set top(value:Number):void| verticalCenter | property |
verticalCenter:Numbersets the vertical center of display object
The default value is 0.
public function get verticalCenter():Number public function set verticalCenter(value:Number):void| width | property |
width:Number[override] Sets width of the display object in pixels
The default value is 0.
public function get width():Number public function set width(value:Number):void| widthPercent | property |
widthPercent:Stringsets the percent of width of display object
public function get widthPercent():String public function set widthPercent(value:String):void| ElementFactory | () | Constructor |
public function ElementFactory()Constructor
| clone | () | method |
public function clone():*Returns clone of self
Returns* |
| displayComplete | () | method |
public function displayComplete():voidCML callback
| dispose | () | method |
public function dispose():voidCalls 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():voidInitialization function
| parseCML | () | method |
public function parseCML(cml:XMLList):XMLListparses cml file
Parameters
cml:XMLList |
XMLList —
|
| postparseCML | () | method |
public function postparseCML(cml:XMLList):voidpost parses the cml file
Parameters
cml:XMLList |
| updateProperties | () | method |
public function updateProperties(state:Number = 0):voidthis method updates the properties
Parameters
state:Number (default = 0) |