Packagecom.gestureworks.cml.components
Classpublic class Component
InheritanceComponent Inheritance TouchContainer Inheritance TouchContainerFactory Inheritance TouchSprite Inheritance flash.display.Sprite
Subclasses AlbumViewer, CollectionViewer, FlickrViewer, GigapixelViewer, ImageViewer, LiveVideoViewer, MaskImageViewer, MediaViewer, ModestMapViewer, MP3Player, PanoramicViewer, SlideshowViewer, VideoViewer, WAVPlayer, YouTubeViewer

The Component manages a group of elements to create a high-level interactive touch container.

It is composed of the following:

     
            
     

See also

com.gestureworks.cml.element.TouchContainer


Public Properties
 PropertyDefined By
 Inherited_$height : Number = 0
TouchSprite
 Inherited_$rotation : Number = 0
TouchSprite
 Inherited$rotation : Number
TouchSprite
 Inherited_$scaleX : Number = 1
TouchSprite
 Inherited$scaleX : Number
TouchSprite
 Inherited_$scaleY : Number = 1
TouchSprite
 Inherited$scaleY : Number
TouchSprite
 Inherited$transformPoint : Point
TouchSprite
 Inherited_$width : Number = 0
TouchSprite
 Inherited_$x : Number = 0
TouchSprite
 Inherited$x : Number
TouchSprite
 Inherited_$y : Number = 0
TouchSprite
 Inherited$y : Number
TouchSprite
  activity : Boolean
[read-only]
Component
  autoAlign : String
Set the autoAlign for the auto text layout feature if desired.
Component
 InheritedautoShuffle : Boolean
autoshuffles
TouchContainerFactory
  autoTextLayout : Boolean
Specifies whether text fields will be automatically adjusted to the component's width
Component
  back : *
Sets the back element.
Component
  background : *
Sets the back background element.
Component
  backs : Array
Component
 InheritedbroadcastTarget : Boolean
TouchSprite
 InheritedchildList : ChildList
[read-only] returns the childlist
TouchContainerFactory
 Inheritedclass_ : String
Object's css class;
TouchContainerFactory
 InheritedclassName : String
sets the class name of displayobject
TouchContainerFactory
 InheritedcloneExclusions : Vector.<String>
[read-only] Returns a list of properties to exclude when cloning this object
TouchContainer
 InheritedclusterBubbling : Boolean
Allows touch points from a childclusters to copy into container touch objects in the local parent child display list stack.
TouchSprite
 InheritedclusterEvents : Boolean
Determins whether clusterEvents are processed and dispatched on the touchSprite.
TouchSprite
 InheritedclusterID : int
TouchSprite
 InheritedcmlIndex : int
sets the cml index
TouchContainerFactory
 Inheritedcml_item : Boolean
TouchSprite
 InheritedcO : ClusterObject
TouchSprite
 InheriteddebugDisplay : Boolean
TouchSprite
 InheriteddeltaFilterOn : Boolean
Determins whether filtering is applied to the delta values.
TouchSprite
 InheriteddimensionsTo : String
sets the dimensions of touchcontainer
TouchContainerFactory
 InheriteddisableAffineTransform : Boolean
Determins whether internal (native) transformations are affine (dynamically centered) on the touchSprite.
TouchSprite
 InheriteddisableNativeTransform : Boolean
Determins whether transformations are handled internally (natively) on the touchSprite.
TouchSprite
 InheriteddN : Number
TouchSprite
 InheriteddropShadow : Boolean
Sets the drop shadow effect
TouchContainerFactory
  fadeoutDuration : Number
Set the fadeout time for an object that's timed out.
Component
  fontArray : Array
Component
  fontIncrement : Number
font increment
Component
  frame : *
Sets the frame element.
Component
  front : *
Sets the front element.
Component
  fronts : Array
Component
 InheritedGESTRELIST_UPDATE : String = gestureList update
[static]
TouchSprite
 InheritedgestureEventComplete : Boolean
Indicates weather all gestureEvents have been completed on the touchSprite.
TouchSprite
 InheritedgestureEventRelease : Boolean
Indicates whether all touch points have been released on the touchSprite.
TouchSprite
 InheritedgestureEvents : Boolean
Determins whether gestureEvents are processed and dispatched on the touchSprite.
TouchSprite
 InheritedgestureEventStart : Boolean
Indicates whether any gestureEvents have been started on the touchSprite.
TouchSprite
 InheritedgestureFilters : Boolean
TouchSprite
 InheritedgestureList : Object
TouchSprite
 InheritedgestureReleaseInertia : Boolean
Determins whether release inertia is given to gestureEvents on the touchSprite.
TouchSprite
 InheritedgestureTouchInertia : Boolean
Determins whether touch inertia is processed on the touchSprite.
TouchSprite
 Inherited_gestureTweenOn : Boolean = false
TouchSprite
 InheritedgestureTweenOn : Boolean
TouchSprite
  glowColor : uint = 0xFFFFFF
Component
 InheritedgO : GestureListObject
TouchSprite
 Inheritedgroup : String
TouchContainerFactory
 Inheritedheight : Number
[override] sets the height of the container
TouchContainerFactory
  hideFrontOnFlip : *
Specifies whether the front is hidden when the the back is shown
Component
 Inheritedid : String
sets childlist id
TouchContainerFactory
 Inheritedlayout : *
speciffies the type of layout
TouchContainerFactory
 InheritedlayoutComplete : Function
Sets the function to call when the layout is complete
TouchContainer
 InheritedlayoutList : Dictionary
TouchContainer
 InheritedlayoutUpdate : Function
Sets the function to call when the layout updates
TouchContainer
 InheritedmaxScale : Number
This method is called after class initialization.
TouchContainerFactory
  menu : *
Sets the menu element.
Component
 InheritedminScale : Number
This method is called after class initialization.
TouchContainerFactory
 InheritedmouseChildren : Boolean
[override] sets the mousechildren value to true or false.
TouchContainerFactory
 InheritedN : int
TouchSprite
 InheritednestedTransform : Boolean
TouchSprite
 Inheritedoutline_alpha : Number
sets the alpha of outline
TouchContainerFactory
 Inheritedoutline_color : Number
sets the color of outline
TouchContainerFactory
 Inheritedoutline_joint : String
TODO
TouchContainerFactory
 InheritedoutlineOn : String
specifies the outline of container to true or false
TouchContainerFactory
 Inheritedoutline_stroke : int
sets the line stroke of outline
TouchContainerFactory
 InheritedpointArray : Vector.<PointObject>
[read-only]
TouchSprite
 InheritedpointCount : int
TouchSprite
 InheritedpropertyStates : Array
Deprecated: Please Use state
TouchContainerFactory
 Inheritedscale : Number
Scales display object
TouchContainer
 InheritedsO : StrokeObject
TouchSprite
 Inheritedstate : Array
property states array
TouchContainerFactory
 Inheritedtargeting : Boolean
Turns off manual ALL targeting control, defaults to a simple hit test targeting model with exclusive target clustering
TouchSprite
 InheritedtargetList : Array
Allows touch and gesture events to explicitly target a group of defined touch objects which can be outside of the local parent child display list stack
TouchSprite
 InheritedtargetObject : Object
Allows touch and gesture events to explicitly target a touch object this can be outside the local parent child display list stack
TouchSprite
 InheritedtargetParent : Boolean
Allows touch and gesture events to explicitly target the parent touch object
TouchSprite
 Inheritedtc : TouchCluster
TouchSprite
 Inheritedtd : TouchDebugDisplay
TouchSprite
  textFields : Array
Component
 Inheritedtg : TouchGesture
TouchSprite
  timeout : Number
Set the timeout value for when the elements were automatically close.
Component
 InheritedtiO : TimelineObject
TouchSprite
 InheritedtouchChildren : Boolean
TouchSprite
 InheritedtouchObjectID : int
[read-only]
TouchSprite
 Inheritedtp : TouchPipeline
TouchSprite
 InheritedtraceDebugModeOn : Boolean
TouchSprite
 InheritedtransformComplete : Boolean
TouchSprite
 InheritedtransformEventComplete : Boolean
TouchSprite
 InheritedtransformEvents : Boolean
Determins whether transformEvents are processed and dispatched on the touchSprite.
TouchSprite
 InheritedtransformEventStart : Boolean
TouchSprite
 InheritedtransformGestureVectors : Boolean
Determins whether transformations are handled internally (natively) on the touchSprite.
TouchSprite
 InheritedtransformStart : Boolean
TouchSprite
 InheritedtrO : TransformObject
TouchSprite
 Inheritedtt : TouchTransform
TouchSprite
  visible : Boolean
[override] [write-only] Manages the timer and dispatches a state event
Component
 Inheritedwidth : Number
[override] sets the width of the container
TouchContainerFactory
 Inheritedx_lock : Boolean
TouchSprite
 Inheritedy_lock : Boolean
TouchSprite
Protected Properties
 PropertyDefined By
 InheritedcmlGestureList : Object
TouchContainerFactory
  side : String
[read-only] Specifies the currently displayed side
Component
Public Methods
 MethodDefined By
  
component Constructor
Component
 Inherited
TODO
TouchContainerFactory
 Inherited
method searches the child and adds to the list
TouchContainerFactory
 Inherited
addChild(child:DisplayObject):DisplayObject
[override] Adds child to display list and, if not already added, the child list
TouchContainer
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
[override] Registers event listeners.
TouchSprite
 Inherited
applyLayout(value:* = null):void
Apply the containers layout
TouchContainer
 Inherited
childToList(id:String, child:*):void
child appended to the childlist
TouchContainerFactory
  
clone():*
[override] Returns clone of self
Component
  
[override] CML Initialisation callback
Component
  
dispose():void
[override]
Component
  
fadeIn(dur:Number = 250):void
Component
  
fadeOut(dur:Number = 250):void
Component
  
glowIn(dur:Number = 1):void
Component
  
glowOut(dur:Number = 1):void
Component
  
glowPulse():void
Component
 Inherited
hideIndex(index:int):void
hides child list index
TouchContainer
 Inherited
hideKey(key:String):void
hides childlist key visibility
TouchContainer
  
init():void
[override] Initialisation method
Component
  
invertMatrix(displayObject:DisplayObject, newParent:DisplayObjectContainer):void
Component
 Inherited
makeGestureList(value:XMLList):Object
TODO
TouchContainerFactory
  
Component
  
onDown(event:* = null):void
handles touch event
Component
 Inherited
onTouchDown(event:TouchEvent, target:* = null):void
decides how to assign the captured touch point to a cluster can pass to parent, an explicit target, an explicit list or targets or a passed to any touch object in the local display stack.
TouchSprite
  
onUp(event:* = null):void
handles event
Component
 Inherited
parseCML(cml:XMLList):XMLList
[override] Parse cml for local layouts.
TouchContainer
 Inherited
postparseCML(cml:XMLList):void
postparse method
TouchContainerFactory
  
reset():void
Component
  
Component
  
Component
 Inherited
searchChildren(value:*, returnType:Class = null):*
This method does a depth first search of childLists.
TouchContainer
 Inherited
method sets the dimensions of each child
TouchContainerFactory
 Inherited
showIndex(index:int):void
shows index of the child list
TouchContainer
 Inherited
showKey(key:String):void
shows the child list key visibility
TouchContainer
 Inherited
TouchSprite
 Inherited
TouchSprite
 Inherited
TouchSprite
 Inherited
Registers/unregisters event handlers depending on the active modes
TouchSprite
 Inherited
TouchSprite
 Inherited
updateProperties(state:Number = 0):void
update properties of child
TouchContainerFactory
 Inherited
TouchSprite
 Inherited
TouchSprite
Protected Methods
 MethodDefined By
 Inherited
This method is called after class initialization.
TouchContainerFactory
 Inherited
This method is called after class initialization.
TouchContainerFactory
  
Component
  
onTimer(e:TimerEvent):void
Component
 Inherited
randomMinMax(min:Number, max:Number):Number
This method is called after class initialization.
TouchContainerFactory
 Inherited
This method is called after class initialization.
TouchContainerFactory
 Inherited
thumbUpdate(event:Event):void
This method is called after class initialization.
TouchContainerFactory
  
updateLayout(event:* = null):void
Component
Property Detail
activityproperty
activity:Boolean  [read-only]


Implementation
    public function get activity():Boolean
autoAlignproperty 
autoAlign:String

Set the autoAlign for the auto text layout feature if desired. Options are "left", "center", "right".

The default value is "center".


Implementation
    public function get autoAlign():String
    public function set autoAlign(value:String):void
autoTextLayoutproperty 
autoTextLayout:Boolean

Specifies whether text fields will be automatically adjusted to the component's width

The default value is true.


Implementation
    public function get autoTextLayout():Boolean
    public function set autoTextLayout(value:Boolean):void
backproperty 
back:*

Sets the back element. This can be set using a simple CSS selector (id or class) or directly to a display object. Regardless of how this set, a corresponding display object is always returned.


Implementation
    public function get back():*
    public function set back(value:any):void
backgroundproperty 
background:*

Sets the back background element. This can be set using a simple CSS selector (id or class) or directly to a display object. Regardless of how this set, a corresponding display object is always returned.


Implementation
    public function get background():*
    public function set background(value:any):void
backsproperty 
public var backs:Array

fadeoutDurationproperty 
fadeoutDuration:Number

Set the fadeout time for an object that's timed out.


Implementation
    public function get fadeoutDuration():Number
    public function set fadeoutDuration(value:Number):void
fontArrayproperty 
public var fontArray:Array

fontIncrementproperty 
fontIncrement:Number

font increment

The default value is 2;.


Implementation
    public function get fontIncrement():Number
    public function set fontIncrement(value:Number):void
frameproperty 
frame:*

Sets the frame element. This can be set using a simple CSS selector (id or class) or directly to a display object. Regardless of how this set, a corresponding display object is always returned.


Implementation
    public function get frame():*
    public function set frame(value:any):void
frontproperty 
front:*

Sets the front element. This can be set using a simple CSS selector (id or class) or directly to a display object. Regardless of how this set, a corresponding display object is always returned.


Implementation
    public function get front():*
    public function set front(value:any):void
frontsproperty 
public var fronts:Array

glowColorproperty 
public var glowColor:uint = 0xFFFFFF

hideFrontOnFlipproperty 
hideFrontOnFlip:*

Specifies whether the front is hidden when the the back is shown

The default value is false.


Implementation
    public function get hideFrontOnFlip():*
    public function set hideFrontOnFlip(value:any):void
menuproperty 
menu:*

Sets the menu element. This can be set using a simple CSS selector (id or class) or directly to a display object. Regardless of how this set, a corresponding display object is always returned.


Implementation
    public function get menu():*
    public function set menu(value:any):void
sideproperty 
side:String  [read-only]

Specifies the currently displayed side

The default value is "front".


Implementation
    protected function get side():String
textFieldsproperty 
public var textFields:Array

timeoutproperty 
timeout:Number

Set the timeout value for when the elements were automatically close.


Implementation
    public function get timeout():Number
    public function set timeout(value:Number):void
visibleproperty 
visible:Boolean  [write-only] [override]

Manages the timer and dispatches a state event


Implementation
    public function set visible(value:Boolean):void
Constructor Detail
Component()Constructor
public function Component()

component Constructor

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

Returns clone of self

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

CML Initialisation callback

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

fadeIn()method 
public function fadeIn(dur:Number = 250):void

Parameters

dur:Number (default = 250)

fadeOut()method 
public function fadeOut(dur:Number = 250):void

Parameters

dur:Number (default = 250)

glowIn()method 
public function glowIn(dur:Number = 1):void

Parameters

dur:Number (default = 1)

glowOut()method 
public function glowOut(dur:Number = 1):void

Parameters

dur:Number (default = 1)

glowPulse()method 
public function glowPulse():void

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

Initialisation method

invertMatrix()method 
public function invertMatrix(displayObject:DisplayObject, newParent:DisplayObjectContainer):void

Parameters

displayObject:DisplayObject
 
newParent:DisplayObjectContainer

noActivity()method 
public function noActivity(e:GWGestureEvent):void

Parameters

e:GWGestureEvent

onDown()method 
public function onDown(event:* = null):void

handles touch event

Parameters

event:* (default = null)

onStateEvent()method 
protected function onStateEvent(event:StateEvent):void

Parameters

event:StateEvent

onTimer()method 
protected function onTimer(e:TimerEvent):void

Parameters

e:TimerEvent

onUp()method 
public function onUp(event:* = null):void

handles event

Parameters

event:* (default = null)

reset()method 
public function reset():void

resetMatrix()method 
public function resetMatrix():void

restartTimer()method 
public function restartTimer():void

updateLayout()method 
protected function updateLayout(event:* = null):void

Parameters

event:* (default = null)