Packageflare.vis.events
Classpublic class SelectionEvent
InheritanceSelectionEvent Inheritance DataEvent Inheritance flash.events.Event

Event fired in response to interactive selection events.



Public Properties
 PropertyDefined by
  altKey : Boolean
Indicates whether the Alt key is active (true) or inactive (false).
SelectionEvent
  cause : MouseEvent
[read-only] The event that triggered this event, if any.
SelectionEvent
  ctrlKey : Boolean
Indicates whether the Control key is active (true) or inactive (false).
SelectionEvent
 Inheritededge : EdgeSprite
The first element in the event list as an EdgeSprite.
DataEvent
 Inheriteditem : DataSprite
The first element in the event list as a DataSprite.
DataEvent
 Inheriteditems : Array
The list of effected data items.
DataEvent
 Inheritedlength : int
The number of items in this data event.
DataEvent
 Inheritedlist : DataList
The data list (if any) the items belong to.
DataEvent
 Inheritednode : NodeSprite
The first element in the event list as a NodeSprite.
DataEvent
 Inheritedobject : Object
The first element in the event list as an Object.
DataEvent
  shiftKey : Boolean
Indicates whether the Shift key is active (true) or inactive (false).
SelectionEvent
Public Methods
 MethodDefined by
  
SelectionEvent(type:String, items:MouseEvent, e:* = null)
Creates a new SelectionEvent.
SelectionEvent
  
clone():Event
SelectionEvent
Public Constants
 ConstantDefined by
 InheritedADD : String = "add"
[static] A data added event.
DataEvent
  DESELECT : String = "deselect"
[static] A deselection event.
SelectionEvent
 InheritedREMOVE : String = "remove"
[static] A data removed event.
DataEvent
  SELECT : String = "select"
[static] A selection event.
SelectionEvent
 InheritedUPDATE : String = "update"
[static] A data updated event.
DataEvent
Property detail
altKeyproperty
public var altKey:Boolean

Indicates whether the Alt key is active (true) or inactive (false).

causeproperty 
cause:MouseEvent  [read-only]

The event that triggered this event, if any.

Implementation
    public function get cause():MouseEvent
ctrlKeyproperty 
public var ctrlKey:Boolean

Indicates whether the Control key is active (true) or inactive (false). On Macintosh computers, you must use this property to represent the Command key.

shiftKeyproperty 
public var shiftKey:Boolean

Indicates whether the Shift key is active (true) or inactive (false).

Constructor detail
SelectionEvent()constructor
public function SelectionEvent(type:String, items:MouseEvent, e:* = null)

Creates a new SelectionEvent.

Parameters
type:String — the event type (SELECT or DESELECT)
 
items:MouseEvent — the display object(s) that were selected or deselected
 
e:* (default = null) — (optional) the MouseEvent that triggered the selection
Method detail
clone()method
public override function clone():Event

Returns
Event
Constant detail
DESELECTconstant
public static const DESELECT:String = "deselect"

A deselection event.

SELECTconstant 
public static const SELECT:String = "select"

A selection event.