Packageorg.as3coreaddendum.events
Classpublic class IndexEvent
InheritanceIndexEvent Inheritance flash.events.Event

This event should be dispatched by objects that implement org.as3coreaddendum.system.IIndex interface and had its "index" setter invoked. This way the object will inform that its index was changed.

But if the object does not implement flash.events.IEventDispatcher interface, that's ok to not dispatch this event.



Public Properties
 PropertyDefined By
  index : int
[read-only] description
IndexEvent
Public Methods
 MethodDefined By
  
IndexEvent(type:String, index:int, bubbles:Boolean = false, cancelable:Boolean = false)
Constructor, creates a new IndexEvent object.
IndexEvent
  
clone():Event
[override] Duplicates the instance of IndexEvent object.
IndexEvent
Public Constants
 ConstantDefined By
  CHANGED : String = org.as3coreaddendum.events.IndexEvent.CHANGED
[static]
IndexEvent
Property Detail
indexproperty
index:int  [read-only]

description


Implementation
    public function get index():int
Constructor Detail
IndexEvent()Constructor
public function IndexEvent(type:String, index:int, bubbles:Boolean = false, cancelable:Boolean = false)

Constructor, creates a new IndexEvent object.

Parameters
type:String — The type of the event, accessible as Event.type.
 
index:int — The new index value.
 
bubbles:Boolean (default = false) — Determines whether the Event object participates in the bubbling stage of the event flow. The default value is false.
 
cancelable:Boolean (default = false) — Determines whether the Event object can be canceled. The default value is false.
Method Detail
clone()method
override public function clone():Event

Duplicates the instance of IndexEvent object.

Returns a new IndexEvent object that is a copy of the original instance of the IndexEvent object. You do not normally call clone(); the EventDispatcher class calls it automatically when you redispatch an event—that is, when you call dispatchEvent(event) from a handler that is handling event.

The new IndexEvent object includes all the properties of the original.

Returns
Event — A new IndexEvent object that is identical to the original.
Constant Detail
CHANGEDConstant
public static const CHANGED:String = org.as3coreaddendum.events.IndexEvent.CHANGED