Packagetwaver
Classpublic class IndexChangeEvent
InheritanceIndexChangeEvent Inheritance flash.events.Event

This event wraps the change information that the index of a data or element of the data box or element box has been changed. Listeners can monitoring this event to know the index change event and do some extra behaviour.



Public Properties
 PropertyDefined By
  element : IElement
the element that index has been changed.
IndexChangeEvent
  newIndex : int
the new index value after the change
IndexChangeEvent
  oldIndex : int
the old index value before change
IndexChangeEvent
Public Methods
 MethodDefined By
  
IndexChangeEvent(element:IElement = null, oldIndex:int = -1, newIndex:int = -1, bubbles:Boolean = false, cancelable:Boolean = false)
Constructor.
IndexChangeEvent
  
clone():Event
[override]
IndexChangeEvent
Property Detail
elementproperty
public var element:IElement

the element that index has been changed.

newIndexproperty 
public var newIndex:int

the new index value after the change

oldIndexproperty 
public var oldIndex:int

the old index value before change

Constructor Detail
IndexChangeEvent()Constructor
public function IndexChangeEvent(element:IElement = null, oldIndex:int = -1, newIndex:int = -1, bubbles:Boolean = false, cancelable:Boolean = false)

Constructor.

Parameters
element:IElement (default = null) — element that index has been changed
 
oldIndex:int (default = -1) — the old index value before change.
 
newIndex:int (default = -1) — the new index value after change.
 
bubbles:Boolean (default = false) — whether bubble up this event.
 
cancelable:Boolean (default = false) — whether this event can be canceled.
Method Detail
clone()method
override public function clone():Event

Returns
Event