TraverseArrayEnumeratorEvent

Kind of class: public class
Package:
Inherits from:
  • Event
Dispatched by:
Classpath: org.asaplibrary.data.array.TraverseArrayEnumeratorEvent
File last modified: Wednesday, 11 May 2011, 18:33:30
Passes events for TraverseArrayEnumerator. Subscribe to type _EVENT.
Example
  • var enumerator:TraverseArrayEnumerator = new TraverseArrayEnumerator(objects);
    enumerator.addEventListener(TraverseArrayEnumeratorEvent._EVENT, handleTraverseUpdate);
    
    Listen for traverse events:
    private function handleTraverseUpdate (e:TraverseArrayEnumeratorEvent) : void {
    if (e.subtype == TraverseArrayEnumeratorEvent.UPDATE) {
    // retrieve object with e.value
    }
    }
    

Summary

Constructor
Constants
  • _EVENT : String
    • Event type.
  • UPDATE : String
    • Event subtypes sent on update.
Instance properties
Instance methods
  • clone () : Event
    • Creates a copy of an existing TraverseArrayEnumeratorEvent.

Constructor

TraverseArrayEnumeratorEvent

function TraverseArrayEnumeratorEvent(inSubtype:String, inValue:Object, inEnumerator:TraverseArrayEnumerator)

Creates a new TraverseArrayEnumeratorEvent.

Parameters
inSubtype :subtype UPDATE
inValue :the object at the TraverseArrayEnumerator pointer position
inEnumerator:the TraverseArrayEnumerator object

Constants

UPDATE

static const UPDATE:String = "onTraverseArrayEnumeratorUpdate"

Event subtypes sent on update.

_EVENT

static const _EVENT:String = "onTraverseArrayEnumeratorEvent"

Event type.

Instance properties

enumerator

enumerator:TraverseArrayEnumerator(read,write)

subtype

subtype:String(read,write)

value

value:Object(read,write)

Instance methods

clone

override function clone() : Event

Creates a copy of an existing TraverseArrayEnumeratorEvent.

Overrides
  • Event.clone