Packagecom.adobe.kiwi.connections.utils
Classpublic class AsyncResponder

A generalized asynchronous responder. Manages the registration and unregistration of its own set of listeners.



Public Methods
 FunctionDefined by
  
setNextEventHandler(eventDispatcher:IEventDispatcher, eventHandlerFunc:Function, eventName:String, faultHandlerFunc:Function = null, faultEventName:String = null):void
Defines the next event handler for this responder.
AsyncResponder
Method detail
setNextEventHandler method

public function setNextEventHandler(eventDispatcher:IEventDispatcher, eventHandlerFunc:Function, eventName:String, faultHandlerFunc:Function = null, faultEventName:String = null):void

Defines the next event handler for this responder.

This object will register to listen for the designated event to be dispatched from the designated event dispatcher, and call the designated handler function when that event is received.

Parameters
eventDispatcher:IEventDispatcher — the object which will dispatch the next event
eventHandlerFunc:Function — the function to call when the event is received
eventName:String — the event to listen for
faultHandlerFunc:Function (default = null) — the function to call if a fault event is received (null indicates that the previous faultHandlerFunc should be used)
faultEventName:String (default = null) — the fault event to listen for (null indicates that the previous faultEventName should be used)




 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/labs/kiwi/connections/com/adobe/kiwi/connections/utils/AsyncResponder.html