Packageweavejs.core
Classpublic class EventCallbackCollection
InheritanceEventCallbackCollection Inheritance CallbackCollection Inheritance Object

Manages callbacks that rely on event-related data.



Public Properties
 PropertyDefined By
 InheritedcallbacksAreDelayed : Boolean
[read-only]
CallbackCollection
  data : Object
[read-only] This is the data that was dispatched.
EventCallbackCollection
 Inherited_linkableObject : ILinkableObject
CallbackCollection
 InheritedtriggerCounter : uint
[read-only]
CallbackCollection
 InheritedwasDisposed : Boolean
[read-only] This flag becomes true after dispose() is called.
CallbackCollection
Protected Properties
 PropertyDefined By
 Inherited_preCallback : Function = null
This is the function that gets called immediately before every callback.
CallbackCollection
Public Methods
 MethodDefined By
  
EventCallbackCollection
 Inherited
addDisposeCallback(relevantContext:Object, callback:Function, allowDelay:Boolean = false):void
CallbackCollection
 Inherited
addGroupedCallback(relevantContext:Object, groupedCallback:Function, triggerCallbackNow:Boolean = false, delayWhileBusy:Boolean = true):void
CallbackCollection
 Inherited
addImmediateCallback(relevantContext:Object, callback:Function, runCallbackNow:Boolean = false, alwaysCallLast:Boolean = false):void
CallbackCollection
 Inherited
CallbackCollection
  
dispatch(data:Object):void
This function will run callbacks immediately, setting the data variable before each one.
EventCallbackCollection
 Inherited
dispose():void
CallbackCollection
 Inherited
removeCallback(relevantContext:Object, callback:Function):void
CallbackCollection
 Inherited
CallbackCollection
 Inherited
CallbackCollection
Protected Methods
 MethodDefined By
 Inherited
_runCallbacksImmediately(... preCallbackParams):void
This function runs callbacks immediately, ignoring any delays.
CallbackCollection
Public Constants
 ConstantDefined By
 InheritedDEFAULT_TRIGGER_COUNT : uint = 1
[static] This is the default value of triggerCounter.
CallbackCollection
 InheritedSTACK_TRACE_TRIGGER : String = This is the stack trace from when the callbacks were last triggered.
[static]
CallbackCollection
Property Detail
dataproperty
data:Object  [read-only]

This is the data that was dispatched.


Implementation
    public function get data():Object
Constructor Detail
EventCallbackCollection()Constructor
public function EventCallbackCollection()



Method Detail
dispatch()method
public function dispatch(data:Object):void

This function will run callbacks immediately, setting the data variable before each one.

Parameters

data:Object