Packagecom.gestureworks.cml.element
Classpublic class Hotspot
InheritanceHotspot Inheritance Container Inheritance ContainerFactory Inheritance ElementFactory Inheritance flash.display.Sprite

A Hotspot is primarily a container for graphic objects that is set at an index local to a gigapixel scene.

See also

Gigapixel


Public Properties
 PropertyDefined By
 Inheritedalpha : Number
[override] [write-only] sets the alpha for display objects
ElementFactory
 Inheritedblur : Boolean
Sets the drop shadow effect
ElementFactory
 Inheritedbottom : Number
sets the bottom value
ElementFactory
 InheritedchildList : ChildList
[read-only] store the child list
ContainerFactory
 Inheritedclass_ : String
Object's css class;
ElementFactory
 InheritedclassName : String
sets the class name of displayobject
ElementFactory
 InheritedcmlIndex : int
sets the cml index
ElementFactory
  compAbsPos : Boolean = false
Hotspot
  compCenterToStage : Boolean = false
Hotspot
  component : *
The component CSS id to attach this hotspot to.
Hotspot
  compResetOnClose : Boolean = false
Hotspot
  compResetOnOpen : Boolean = false
Hotspot
  compX : Number = 0
Hotspot
  compY : Number = 0
Hotspot
 InheriteddebugStyle : *
sets the debug style
ElementFactory
 InheriteddimensionsTo : String
sets the dimensions of the container
ContainerFactory
 InheriteddisplayEvents : String
Use for dispatch completes.
ElementFactory
 InheriteddropShadow : Boolean
Sets the drop shadow effect
ElementFactory
 Inheritedheight : Number
[override] Sets width of the display object in pixels
ElementFactory
 InheritedheightPercent : String
sets the height percent of display object
ElementFactory
 InheritedhorizontalCenter : Number
sets the horizontal center of display object
ElementFactory
 Inheritedid : String
sets the id of child
ElementFactory
 Inheritedindex : int
sets the index of display object
ElementFactory
 InheritedinfoSource : String
sets info source
ContainerFactory
 Inheritedlayout : *
Sets the layout of the container
Container
 InheritedlayoutComplete : Function
Sets the function to call when the layout is complete
Container
 InheritedlayoutList : Dictionary
Defines the layoutlist
Container
 InheritedlayoutUpdate : Function
Sets the function to call when the layout updates
Container
 Inheritedleft : Number
sets left value
ElementFactory
 InheritedpaddingBottom : Number
Sets the number of pixels between the container's bottom border and the bottom of its content area.
Container
 InheritedpaddingLeft : Number
Sets the number of pixels between the component's left border and the left edge of its content area.
Container
 InheritedpaddingRight : Number
Sets the number of pixels between the component's right border and the right edge of its content area.
Container
 InheritedpaddingTop : Number
Sets the number of pixels between the container's top border and the top of its content area.
Container
 Inheritedposition : String
Sets the position
Container
 InheritedpropertyStates : Array
Deprecated: Please Use state
ElementFactory
 Inheritedright : Number
sets the right value
ElementFactory
 Inheritedscale : Number
Sets both the x and y scale values
ElementFactory
 InheritedscaleX : Number
[override] Sets width of the display object in pixels
ElementFactory
 InheritedscaleY : Number
[override] Sets width of the display object in pixels
ElementFactory
  sceneX : Number
The relative _x coordinate to be attached to on the scene of an object that does not use regular stage coordinates (ie: gigapixel).
Hotspot
  sceneY : Number
the relative _y coordinate to be attached to on the scene of an object that does not use regular stage coordinates (ie: gigapixel).
Hotspot
 Inheritedstate : Array
property states array
ElementFactory
  tether : Boolean
Whether or not a tethering line will be drawn from the hotspot graphic to the component.
Hotspot
  tetherAlpha : Number
The alpha of the tethering line.
Hotspot
  tetherColor : uint
The color of the tethering line if set to true.
Hotspot
  tetherStroke : Number
The stroke of the tethering line.
Hotspot
 Inheritedtop : Number
sets top value
ElementFactory
 InheritedverticalCenter : Number
sets the vertical center of display object
ElementFactory
 Inheritedwidth : Number
[override] Sets width of the display object in pixels
ElementFactory
 InheritedwidthPercent : String
sets the percent of width of display object
ElementFactory
Public Methods
 MethodDefined By
  
Constructor
Hotspot
 Inherited
This method searches the childlist and add the children
ContainerFactory
 Inherited
addChild(child:DisplayObject):DisplayObject
[override] Adds child to display list and, if not already added, the child list TODO: This mechanism should be abstracted to better syncrhonize child and display lists
Container
 Inherited
applyLayout(value:* = null):void
Apply the containers layout
Container
 Inherited
childToList(id:String, child:*):void
this method append to the childlist
ContainerFactory
 Inherited
clone():*
Returns clone of self
ElementFactory
  
[override] CML callback Initialisation
Hotspot
  
dispose():void
[override]
Hotspot
 Inherited
getIndex(index:int):*
returns childlist index
Container
 Inherited
getKey(key:String):*
returns the childlist key
Container
 Inherited
hideIndex(index:int):void
hides the childlist index
Container
 Inherited
hideKey(key:String):void
hides the childlist key
Container
  
init():void
[override] Initialisation method
Hotspot
 Inherited
parseCML(cml:XMLList):XMLList
[override] Parse cml for local layouts.
Container
 Inherited
postparseCML(cml:XMLList):void
post parses the cml file
ElementFactory
 Inherited
searchChildren(value:*, returnType:Class = null):*
This method does a depth first search of childLists.
Container
 Inherited
This method sets the dimensions of childlist
ContainerFactory
 Inherited
showIndex(index:int):void
shows the childlist index
Container
 Inherited
showKey(key:String):void
shows the childlist key
Container
 Inherited
updateProperties(state:Number = 0):void
this method updates the properties
ElementFactory
Property Detail
compAbsPosproperty
public var compAbsPos:Boolean = false

compCenterToStageproperty 
public var compCenterToStage:Boolean = false

componentproperty 
component:*

The component CSS id to attach this hotspot to. Attaching a component to a hotspot that is a button will toggle the component's visibility. It is recommended that you set all items attached to the hotspot to visible="false" as their initial state.


Implementation
    public function get component():*
    public function set component(value:any):void
compResetOnCloseproperty 
public var compResetOnClose:Boolean = false

compResetOnOpenproperty 
public var compResetOnOpen:Boolean = false

compXproperty 
public var compX:Number = 0

compYproperty 
public var compY:Number = 0

sceneXproperty 
sceneX:Number

The relative _x coordinate to be attached to on the scene of an object that does not use regular stage coordinates (ie: gigapixel).


Implementation
    public function get sceneX():Number
    public function set sceneX(value:Number):void
sceneYproperty 
sceneY:Number

the relative _y coordinate to be attached to on the scene of an object that does not use regular stage coordinates (ie: gigapixel).


Implementation
    public function get sceneY():Number
    public function set sceneY(value:Number):void
tetherproperty 
tether:Boolean

Whether or not a tethering line will be drawn from the hotspot graphic to the component.


Implementation
    public function get tether():Boolean
    public function set tether(value:Boolean):void
tetherAlphaproperty 
tetherAlpha:Number

The alpha of the tethering line.


Implementation
    public function get tetherAlpha():Number
    public function set tetherAlpha(value:Number):void
tetherColorproperty 
tetherColor:uint

The color of the tethering line if set to true.


Implementation
    public function get tetherColor():uint
    public function set tetherColor(value:uint):void
tetherStrokeproperty 
tetherStroke:Number

The stroke of the tethering line.


Implementation
    public function get tetherStroke():Number
    public function set tetherStroke(value:Number):void
Constructor Detail
Hotspot()Constructor
public function Hotspot()

Constructor

Method Detail
displayComplete()method
override public function displayComplete():void

CML callback Initialisation

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

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

Initialisation method