Packagemx.charts.events
Classpublic class ChartItemEvent
InheritanceChartItemEvent Inheritance flash.events.MouseEvent

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

The ChartItemEvent class represents events that are specific to the chart components, such as when a chart item is clicked.



Public Properties
 PropertyDefined By
  hitData : HitData
[read-only] The first item in the hitSet array.
ChartItemEvent
  hitSet : Array
A set of HitData structures describing the chart items that triggered the event.
ChartItemEvent
Public Methods
 MethodDefined By
  
ChartItemEvent(type:String, hitSet:Array = null, triggerEvent:MouseEvent = null, target:ChartBase = null)
Constructor.
ChartItemEvent
Public Constants
 ConstantDefined By
  CHANGE : String = change
[static] Event type constant; indicates that the selection in the chart has changed.
ChartItemEvent
  ITEM_CLICK : String = itemClick
[static] Event type constant; indicates that the user clicked the mouse button over a chart item representing data in the chart.
ChartItemEvent
  ITEM_DOUBLE_CLICK : String = itemDoubleClick
[static] Event type constant; indicates that the user double-clicked the mouse button over a chart item representing data in the chart.
ChartItemEvent
  ITEM_MOUSE_DOWN : String = itemMouseDown
[static] Event type constant; indicates that the user pressed the mouse button over a chart item representing data in the chart.
ChartItemEvent
  ITEM_MOUSE_MOVE : String = itemMouseMove
[static] Event type constant; indicates that the user moved the mouse pointer while hovering over a chart item representing data in the chart.
ChartItemEvent
  ITEM_MOUSE_UP : String = itemMouseUp
[static] Event type constant; indicates that the user released the mouse button while over a chart item representing data in the chart.
ChartItemEvent
  ITEM_ROLL_OUT : String = itemRollOut
[static] Event type constant; indicates that the user rolled the mouse pointer away from a chart item representing data in the chart.
ChartItemEvent
  ITEM_ROLL_OVER : String = itemRollOver
[static] Event type constant; indicates that the user rolled the mouse pointer over a chart item representing data in the chart.
ChartItemEvent
Property Detail
hitDataproperty
hitData:HitData  [read-only]

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

The first item in the hitSet array. This is a convenience function for developers who don't care about events corresponding to multiple items.


Implementation
    public function get hitData():HitData
hitSetproperty 
public var hitSet:Array

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

A set of HitData structures describing the chart items that triggered the event. This array is in depth order; the first item in the array is the top-most item, and the last is the deepest.

Constructor Detail
ChartItemEvent()Constructor
public function ChartItemEvent(type:String, hitSet:Array = null, triggerEvent:MouseEvent = null, target:ChartBase = null)

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

Constructor.

Parameters
type:String — The type of the event.
 
hitSet:Array (default = null) — An array of HitData structures describing the ChartItems that triggered the event.
 
triggerEvent:MouseEvent (default = null) — The MouseEvent that triggered this ChartItemEvent.
 
target:ChartBase (default = null) — The chart on which the event was triggered.
Constant Detail
CHANGEConstant
public static const CHANGE:String = change

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

Event type constant; indicates that the selection in the chart has changed.

ITEM_CLICKConstant 
public static const ITEM_CLICK:String = itemClick

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

Event type constant; indicates that the user clicked the mouse button over a chart item representing data in the chart.

ITEM_DOUBLE_CLICKConstant 
public static const ITEM_DOUBLE_CLICK:String = itemDoubleClick

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

Event type constant; indicates that the user double-clicked the mouse button over a chart item representing data in the chart.

ITEM_MOUSE_DOWNConstant 
public static const ITEM_MOUSE_DOWN:String = itemMouseDown

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

Event type constant; indicates that the user pressed the mouse button over a chart item representing data in the chart.

ITEM_MOUSE_MOVEConstant 
public static const ITEM_MOUSE_MOVE:String = itemMouseMove

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

Event type constant; indicates that the user moved the mouse pointer while hovering over a chart item representing data in the chart.

ITEM_MOUSE_UPConstant 
public static const ITEM_MOUSE_UP:String = itemMouseUp

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

Event type constant; indicates that the user released the mouse button while over a chart item representing data in the chart.

ITEM_ROLL_OUTConstant 
public static const ITEM_ROLL_OUT:String = itemRollOut

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

Event type constant; indicates that the user rolled the mouse pointer away from a chart item representing data in the chart.

ITEM_ROLL_OVERConstant 
public static const ITEM_ROLL_OVER:String = itemRollOver

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

Event type constant; indicates that the user rolled the mouse pointer over a chart item representing data in the chart.