Packagecom.amcharts.events
Classpublic class LegendEvent
InheritanceLegendEvent Inheritance flash.events.Event

The LegendEvent class represents events that are specific to the Legend control.



Public Properties
 PropertyDefined by
  index : int
Index of the legend item which was clicked/rolled-over/etc.
LegendEvent
  item : Object
Data item of the legend item which was clicked/rolled-over/etc.
LegendEvent
Public Methods
 MethodDefined by
  
LegendEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false)
Constructor
LegendEvent
Public Constants
 ConstantDefined by
  CLICK_LABEL : String = "clickLabel"
[static]
LegendEvent
  CLICK_MARKER : String = "clickMarker"
[static]
LegendEvent
  HIDE_ITEM : String = "hideItem"
[static]
LegendEvent
  ROLL_OUT_ITEM : String = "rollOutItem"
[static]
LegendEvent
  ROLL_OUT_MARKER : String = "rollOutMarker"
[static]
LegendEvent
  ROLL_OVER_ITEM : String = "rollOverItem"
[static]
LegendEvent
  ROLL_OVER_MARKER : String = "rollOverMarker"
[static]
LegendEvent
  SHOW_ITEM : String = "showItem"
[static]
LegendEvent
Property detail
indexproperty
public var index:int

Index of the legend item which was clicked/rolled-over/etc.

itemproperty 
public var item:Object

Data item of the legend item which was clicked/rolled-over/etc. Can be com.amcharts.pie.Slice or com.amcharts.chartClasses.AmGraph.

Constructor detail
LegendEvent()constructor
public function LegendEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false)

Constructor

Parameters
type:String
 
bubbles:Boolean (default = false)
 
cancelable:Boolean (default = false)
Constant detail
CLICK_LABELconstant
public static const CLICK_LABEL:String = "clickLabel"
CLICK_MARKERconstant 
public static const CLICK_MARKER:String = "clickMarker"
HIDE_ITEMconstant 
public static const HIDE_ITEM:String = "hideItem"
ROLL_OUT_ITEMconstant 
public static const ROLL_OUT_ITEM:String = "rollOutItem"
ROLL_OUT_MARKERconstant 
public static const ROLL_OUT_MARKER:String = "rollOutMarker"
ROLL_OVER_ITEMconstant 
public static const ROLL_OVER_ITEM:String = "rollOverItem"
ROLL_OVER_MARKERconstant 
public static const ROLL_OVER_MARKER:String = "rollOverMarker"
SHOW_ITEMconstant 
public static const SHOW_ITEM:String = "showItem"