Package | com.gestureworks.cml.elements |
Class | public class Attract |
Inheritance | Attract ![]() ![]() |
var a:AttractKit = new AttractKit; a.addChild(img1); a.addChild(img2); a.init(); a.addChild();
See also
Property | Defined By | ||
---|---|---|---|
attractState : Boolean
The current attract state (false = closed, true = open)
| Attract | ||
![]() | autoShuffle : Boolean
autoshuffles
| TouchContainer | |
_autoupdate : Boolean = false
Automatically updates attract screen to stage size. | Attract | ||
autoupdate : Boolean | Attract | ||
center : Boolean
Sets whether or not to center chidren
| Attract | ||
![]() | childList : ChildList
Returns the object's childList. | TouchContainer | |
![]() | className : String
sets the class name of displayobject
| TouchContainer | |
![]() | cloneExclusions : Vector.<String> [read-only]
Returns a list of properties to exclude when cloning this object
| TouchContainer | |
![]() | cmlIndex : int
Returns the index created by the CML parser. | TouchContainer | |
![]() | dimensionsTo : Object
Sets the dimensions of TouchContainer to given object
| TouchContainer | |
![]() | dropShadow : Boolean
Sets the drop shadow effect
| TouchContainer | |
![]() | group : String | TouchContainer | |
![]() | height : Number [override]
sets the height of the container
| TouchContainer | |
![]() | heightPercent : Number
sets the height of the container
| TouchContainer | |
![]() | id : String
Returns the object's id. | TouchContainer | |
![]() | layout : *
specifies the type of layout
| TouchContainer | |
![]() | layoutList : Dictionary | TouchContainer | |
![]() | mouseChildren : Boolean [override]
sets the mousechildren value to true or false. | TouchContainer | |
![]() | paddingBottom : Number
Sets the number of pixels between the container's bottom border and the bottom of its content area. | TouchContainer | |
![]() | paddingLeft : Number
Sets the number of pixels between the component's left border and the left edge of its content area. | TouchContainer | |
![]() | paddingRight : Number
Sets the number of pixels between the component's right border and the right edge of its content area. | TouchContainer | |
![]() | paddingTop : Number
Sets the number of pixels between the container's top border and the top of its content area. | TouchContainer | |
![]() | position : *
Sets the position
| TouchContainer | |
![]() | relativeX : Boolean
When set true this containers children's x position will be laid out relatively
to each other. | TouchContainer | |
![]() | relativeY : Boolean
When set true this containers children's y position will be laid out relatively
to each other. | TouchContainer | |
![]() | sound : String | TouchContainer | |
![]() | state : Dictionary | TouchContainer | |
![]() | stateId : *
Returns the current state id. | TouchContainer | |
timeout : Number
Sets the amount of time in seconds before the program times out and the attract screen pops up. | Attract | ||
![]() | toBitmap : Boolean | TouchContainer | |
tweenFades : Boolean
Sets whether or not to fade the attract screen in and out. | Attract | ||
tweenTime : Number
The duration of the tween in seconds
| Attract | ||
![]() | width : Number [override]
sets the width of the container
| TouchContainer | |
![]() | widthPercent : Number
sets the width of the container
| TouchContainer |
Method | Defined By | ||
---|---|---|---|
Attract()
Constructor
| Attract | ||
![]() | activateTouch():void | TouchContainer | |
![]() | addAllChildren():void
method searches the child and adds to the list
| TouchContainer | |
![]() | addChild(child:DisplayObject):DisplayObject [override]
Adds child to display list and, if not already added, the child list
| TouchContainer | |
![]() | addChildAt(child:DisplayObject, index:int):DisplayObject [override]
Adds child to display list and, if not already added, the child list
| TouchContainer | |
![]() | applyLayout(value:* = null):void
Apply the containers layout
| TouchContainer | |
![]() | childToList(id:String, child:*):void
child appended to the childlist
| TouchContainer | |
![]() | clone():*
Clone method
| TouchContainer | |
dispose():void [override]
Destructor
| Attract | ||
![]() | getElementById(id:String):*
Searches CML childList by id. | TouchContainer | |
![]() | getElementsByClassName(className:String):Array
Searches the CML childList by className. | TouchContainer | |
![]() | getElementsByTagName(tagName:Class):Array
Searches the CML childList by tagName as Class. | TouchContainer | |
init():void [override]
CML callback initialisation
| Attract | ||
![]() | loadState(sId:* = null, recursion:Boolean = false):void
Loads state by index number. | TouchContainer | |
![]() | makeGestureList(value:XMLList):Object
Creates gestureList object from XML
| TouchContainer | |
![]() | parseCML(cml:XMLList):XMLList
Parse cml for local layouts. | TouchContainer | |
![]() | postparseCML(cml:XMLList):void
Abstract method allows the setting of a postparse CML routine. | TouchContainer | |
![]() | querySelector(selector:String):*
Searches the CML childList by selector. | TouchContainer | |
![]() | querySelectorAll(selector:*):Array
Search the CML childList by selector. | TouchContainer | |
![]() | removeChild(child:DisplayObject):DisplayObject [override]
Removes child from display list and, if not already removed, the child list
| TouchContainer | |
![]() | removeChildAt(index:int):DisplayObject [override]
Removes child from display list and, if not already removed, the child list
| TouchContainer | |
![]() | removeChildren(beginIndex:int = 0, endIndex:int = 2147483647):void [override]
Removes children from display list and, if not already removed, the child list
| TouchContainer | |
![]() | saveState(sId:* = null, recursion:Boolean = false):void
Save state by index number. | TouchContainer | |
![]() | searchChildren(value:*, returnType:Class = null):*
This method does a depth first search of childLists. | TouchContainer | |
![]() | setDimensionsToChild():void
method sets the dimensions of each child
| TouchContainer | |
![]() | tweenState(sId:* = null, tweenTime:Number = 1):void
Tween state by stateIndex from current to given state index. | TouchContainer | |
updateLayout(event:Event = null):void
Updates the child x and y position to the center of the stage
| Attract | ||
![]() | updatePadding():void
Updates child padding within this container
| TouchContainer | |
![]() | updatePercentDim():void
Updates child percent dimensions within this container
| TouchContainer | |
![]() | updateProperties(state:* = 0):void
Updates properties from state. | TouchContainer | |
![]() | updateRelativePos():void
Updates child relative positions within this container
| TouchContainer |
_autoupdate | property |
public var _autoupdate:Boolean = false
Automatically updates attract screen to stage size. This adds an event listener to the stage which listens for resize events, and adjust accordingly.
The default value is false
.
attractState | property |
attractState:Boolean
The current attract state (false = closed, true = open)
public function get attractState():Boolean
public function set attractState(value:Boolean):void
autoupdate | property |
autoupdate:Boolean
public function get autoupdate():Boolean
public function set autoupdate(value:Boolean):void
center | property |
center:Boolean
Sets whether or not to center chidren
public function get center():Boolean
public function set center(value:Boolean):void
timeout | property |
timeout:Number
Sets the amount of time in seconds before the program times out and the attract screen pops up.
public function get timeout():Number
public function set timeout(value:Number):void
tweenFades | property |
tweenFades:Boolean
Sets whether or not to fade the attract screen in and out.
public function get tweenFades():Boolean
public function set tweenFades(value:Boolean):void
tweenTime | property |
tweenTime:Number
The duration of the tween in seconds
public function get tweenTime():Number
public function set tweenTime(value:Number):void
Attract | () | Constructor |
public function Attract()
Constructor
dispose | () | method |
override public function dispose():void
Destructor
init | () | method |
override public function init():void
CML callback initialisation
updateLayout | () | method |
public function updateLayout(event:Event = null):void
Updates the child x and y position to the center of the stage
Parameters
event:Event (default = null )
|