| Package | com.gestureworks.cml.element |
| Class | public class ButtonElement |
| Inheritance | ButtonElement Container ContainerDisplay ElementFactory flash.display.Sprite |
| Property | Defined By | ||
|---|---|---|---|
![]() | alpha : Number [override] [write-only]
Sets minimum scale of the display object in pixels
| ElementFactory | |
![]() | bottom : Number | ElementFactory | |
![]() | childList : LinkedMap [read-only] | ContainerDisplay | |
![]() | class_ : String
Object's css class;
| ElementFactory | |
![]() | className : String | ElementFactory | |
![]() | cmlIndex : int | ElementFactory | |
![]() | debugStyle : * | ElementFactory | |
![]() | dimensionsTo : String | ContainerDisplay | |
| dispatch : String
Sets type of button, returned in the down event string
| ButtonElement | ||
| dispatchDefault : Boolean = false | ButtonElement | ||
![]() | displayEvents : String
Use for dispatch completes. | ElementFactory | |
![]() | fixedScale : Boolean | ElementFactory | |
![]() | height : Number [override]
Sets width of the display object in pixels
| ElementFactory | |
![]() | heightPercent : String | ElementFactory | |
| hit : String
Sets hit object
| ButtonElement | ||
| hitObject : * | ButtonElement | ||
![]() | horizontalCenter : Number | ElementFactory | |
![]() | id : String | ElementFactory | |
![]() | index : int | ElementFactory | |
![]() | infoSource : String | ContainerDisplay | |
| init : String
Sets button state association with mouse down event
| ButtonElement | ||
![]() | layout : String | Container | |
![]() | left : Number | ElementFactory | |
![]() | maxScale : Number
Sets maximum scale of the display object in pixels
| ElementFactory | |
![]() | minScale : Number
Sets minimum scale of the display object in pixels
| ElementFactory | |
| mouseDown : String
Sets button state association with mouse down event
| ButtonElement | ||
| mouseOut : String
Sets button state association with mouse out event
| ButtonElement | ||
| mouseOver : String
Sets button state association with mouse over event
| ButtonElement | ||
| mouseUp : String
Sets button state association with mouse up event
| ButtonElement | ||
![]() | paddingBottom : Number | Container | |
![]() | paddingLeft : Number | Container | |
![]() | paddingRight : Number | Container | |
![]() | paddingTop : Number | Container | |
![]() | position : String | Container | |
![]() | propertyStates : Array | ElementFactory | |
![]() | right : Number | ElementFactory | |
![]() | scale : Number
Scales display object
| 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 | |
![]() | top : Number | ElementFactory | |
| touchDown : String
Sets button state association with touch down event
| ButtonElement | ||
| touchUp : String
Sets button state association with touch up event
| ButtonElement | ||
![]() | verticalCenter : Number | ElementFactory | |
![]() | width : Number [override]
Sets width of the display object in pixels
| ElementFactory | |
![]() | widthPercent : String | ElementFactory | |
| Property | Defined By | ||
|---|---|---|---|
| buttonStates : Dictionary | ButtonElement | ||
| debug : Boolean = true | ButtonElement | ||
| Method | Defined By | ||
|---|---|---|---|
| ButtonElement | |||
![]() | addAllChildren():void | ContainerDisplay | |
![]() | childToList(id:String, child:*):void | ContainerDisplay | |
![]() | clone():Object
Returns clone of self
| ElementFactory | |
displayComplete():void [override]
CML display initialization callback
| ButtonElement | ||
![]() | dispose():void [override] | ContainerDisplay | |
![]() | getIndex(index:int):* | Container | |
![]() | getKey(key:String):* | Container | |
![]() | hideIndex(index:int):void | Container | |
![]() | hideKey(key:String):void | Container | |
![]() | parseCML(cml:XMLList):XMLList | ElementFactory | |
![]() | postparseCML(cml:XMLList):void | ElementFactory | |
![]() | print(value:*):void
Prints to console
| ElementFactory | |
![]() | setDimensionsToChild():void | ContainerDisplay | |
![]() | showIndex(index:int):void | Container | |
![]() | showKey(key:String):void | Container | |
![]() | updateProperties(state:Number = 0):void | ElementFactory | |
| buttonStates | property |
protected var buttonStates:Dictionary| debug | property |
protected var debug:Boolean = true| dispatch | property |
dispatch:StringSets type of button, returned in the down event string
public function get dispatch():String public function set dispatch(value:String):void| dispatchDefault | property |
public var dispatchDefault:Boolean = false| hit | property |
hit:StringSets hit object
public function get hit():String public function set hit(value:String):void| hitObject | property |
public var hitObject:*| init | property |
init:StringSets button state association with mouse down event
public function get init():String public function set init(value:String):void| mouseDown | property |
mouseDown:StringSets button state association with mouse down event
public function get mouseDown():String public function set mouseDown(value:String):void| mouseOut | property |
mouseOut:StringSets button state association with mouse out event
public function get mouseOut():String public function set mouseOut(value:String):void| mouseOver | property |
mouseOver:StringSets button state association with mouse over event
public function get mouseOver():String public function set mouseOver(value:String):void| mouseUp | property |
mouseUp:StringSets button state association with mouse up event
public function get mouseUp():String public function set mouseUp(value:String):void| touchDown | property |
touchDown:StringSets button state association with touch down event
public function get touchDown():String public function set touchDown(value:String):void| touchUp | property |
touchUp:StringSets button state association with touch up event
public function get touchUp():String public function set touchUp(value:String):void| ButtonElement | () | Constructor |
public function ButtonElement()| displayComplete | () | method |
override public function displayComplete():voidCML display initialization callback