| Package | soi.events |
| Class | public class HotSpotEvent |
| Inheritance | HotSpotEvent flash.events.Event |
HotSpot control
| Property | Defined by | ||
|---|---|---|---|
| properties : Object
The
properties object acts as a flexible transport object to allow complex
data to be attached to the event object during dispatch at run time. | HotSpotEvent | ||
| Method | Defined by | ||
|---|---|---|---|
|
HotSpotEvent(type:String = null, bubbles:Boolean = true, properties:Object = null)
Constructor.
| HotSpotEvent | ||
| Constant | Defined by | ||
|---|---|---|---|
| HOTSPOT_CHANGE : String = "HotSpotChange" [static]
The
HotSpotEvent.HOTSPOT_CHANGE constant defines the value of the
type property of the event object for a HotSpotChange event. | HotSpotEvent | ||
| HOTSPOT_CLEAR : String = "HotSpotClear" [static]
The
>HotSpotEvent.HOTSPOT_CLEAR constant defines the value of the
type property of the event object for a HotSpotClear event. | HotSpotEvent | ||
| HOTSPOT_PLACE : String = "HotSpotPlace" [static]
The
>HotSpotEvent.HOTSPOT_PLACE constant defines the value of the
type property of the event object for a HotSpotPlace event. | HotSpotEvent | ||
| properties | property |
public var properties:Object
The properties object acts as a flexible transport object to allow complex
data to be attached to the event object during dispatch at run time.
| HotSpotEvent | () | constructor |
public function HotSpotEvent(type:String = null, bubbles:Boolean = true, properties:Object = null)
Constructor.
Typically instantiated inline within the dispatchEvent method.
type:String (default = null) — The event type; indicates the action that caused the event.
|
|
bubbles:Boolean (default = true) — Specifies whether the event can bubble up the display list hierarchy.
|
|
properties:Object (default = null) — A transport object to allow complex data to be attached to the event object during dispatch.
|
| HOTSPOT_CHANGE | constant |
public static const HOTSPOT_CHANGE:String = "HotSpotChange"
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.
| HOTSPOT_CLEAR | constant |
public static const HOTSPOT_CLEAR:String = "HotSpotClear"
The >HotSpotEvent.HOTSPOT_CLEAR constant defines the value of the
type property of the event object for a HotSpotClear event.
The HotSpotClear event is dispatched for processing by the Application
class - which responds to this event by setting the x, y, w, and h attributes of the
currently selected link to an empty string, effectively removing the hotspot.
The HotSpotClear event object requires no additional parametres as the
bubbles boolean defaults to true to allow the event to bubble up the
display list to the Application class.
| HOTSPOT_PLACE | constant |
public static const HOTSPOT_PLACE:String = "HotSpotPlace"
The >HotSpotEvent.HOTSPOT_PLACE constant defines the value of the
type property of the event object for a HotSpotPlace event.
The HotSpotPlace event is dispatched when the x, y, w, and/or h attributes
of the currently selected link are empty and is processed by the Application
class - which responds to this event by setting the x, y, w, and h attributes of the
currently selected link to the default start dimensions of a hotspot. The Application
class then instantiates a hotspot control with these new values and adds it to the display list for
interaction.
The HotSpotPlace event object requires no additional parametres as the
bubbles boolean defaults to true to allow the event to bubble up the
display list to the Application class.