Packagesoi.ui
Classpublic class HotSpot
InheritanceHotSpot Inheritance mx.core.UIComponent

The HotSpot control is a visual representation of a links hit area and provides functionality for moving and resizing. The hotspot takes the scaled x, y, w and h attributes from a link to create its appearance and it dispatches any updates to its position or dimensions back to the Application class through an event.



Public Properties
 PropertyDefined by
  currentLink : XML
This property is a reference to the currently selected link XML node in the LinksModel class.
HotSpot
  edgeSize : Number
[read-only] The size in pixels of each of the HotSpot's draggable edges.
HotSpot
  minDragHeight : Number
This property specifies the minimum height that the HotSpot can be dragged to.
HotSpot
  minDragWidth : Number
This property specifies the minimum width that the HotSpot can be dragged to.
HotSpot
Public Methods
 MethodDefined by
  
Constructor.
HotSpot
Events
 EventSummaryDefined by
   Dispatches the new x, y, w, and h values of the hotSpot control through the properties parametre object when the hotspot is moved or resized.HotSpot
Property detail
currentLinkproperty
public var currentLink:XML

This property is a reference to the currently selected link XML node in the LinksModel class. It is not used internally by the hotspot control - but by the Application class to check that the currently active hotspot is a representation of the currently selected link in the LinksModel class and not an orphan control.

This property can be used as the source for data binding.

edgeSizeproperty 
edgeSize:Number  [read-only]

The size in pixels of each of the HotSpot's draggable edges.

Implementation
    public function get edgeSize():Number
minDragHeightproperty 
minDragHeight:Number  [read-write]

This property specifies the minimum height that the HotSpot can be dragged to.

This property can be used as the source for data binding.

Implementation
    public function get minDragHeight():Number
    public function set minDragHeight(value:Number):void
minDragWidthproperty 
minDragWidth:Number  [read-write]

This property specifies the minimum width that the HotSpot can be dragged to.

This property can be used as the source for data binding.

Implementation
    public function get minDragWidth():Number
    public function set minDragWidth(value:Number):void
Constructor detail
HotSpot()constructor
public function HotSpot()

Constructor.

Event detail
HotSpotChangeevent 
Event object type: soi.events.HotSpotEvent
HotSpotEvent.type property = soi.events.HotSpotEvent.HOTSPOT_CHANGE

Dispatches the new x, y, w, and h values of the hotSpot control through the properties parametre object when the hotspot is moved or resized. This event bubbles up to the Application class for processing.

The HotSpotEvent.HOTSPOT_CHANGE constant defines the value of the type property of the event object for a HotSpotChange event. The remaining properties of the event object are the bubbles boolean to allow the event to bubble up the display list to the Application class, and the properties object for attaching a user defined transport object to the event at run time. The HotSpotChange event uses the properties object to transport the new x, y, w, and h values of a hotspot as object literals.