ActionScript® 3.0 Reference for the Adobe® Flash® Platform
Home  |  Show Packages and Classes List |  Packages  |  Classes  |  What's New  |  Index  |  Appendixes
com.adobe.livecycle.rca.service 

DefaultResponder  - AS3 Review, Commenting, and Approval

Packagecom.adobe.livecycle.rca.service
Classpublic class DefaultResponder
InheritanceDefaultResponder Inheritance Object
Implements IResponder
Deprecated since Review, Commenting, and Approval 10New Review, Commenting, and Approval APIs dont use a default responder.

Language Version: ActionScript 3.0
Product Version: Review, Commenting, and Approval Building Block 9.5
Runtime Versions: Flash Player 9, Flash Player 10, AIR (unsupported)

Simple class that implements IResponder and allows a result and fault handler to be defined. Use this class instead of defining these functions everywhere an asynchronous call is made.



Public Properties
 PropertyDefined By
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
Public Methods
 MethodDefined By
  
DefaultResponder(resultHandler:Function, faultHandler:Function)
Constructs a DefaultResponder based on the specified result and fault handlers.
DefaultResponder
  
This method is called by a service when an error has been received.
DefaultResponder
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
  
This method is called by a service when the return value has been received.
DefaultResponder
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Constructor Detail

DefaultResponder

()Constructor
public function DefaultResponder(resultHandler:Function, faultHandler:Function)

Language Version: ActionScript 3.0
Product Version: Review, Commenting, and Approval Building Block 9.5
Runtime Versions: Flash Player 9, Flash Player 10, AIR (unsupported)

Constructs a DefaultResponder based on the specified result and fault handlers.

Parameters
resultHandler:Function — Optional function to call when the asynchronous operation is successful.
 
faultHandler:Function — Optional function to call when the asynchronous operation fails.
Method Detail

fault

()method
public function fault(info:Object):void

Language Version: ActionScript 3.0
Product Version: Review, Commenting, and Approval Building Block 9.5
Runtime Versions: Flash Player 9, Flash Player 10, AIR (unsupported)

This method is called by a service when an error has been received. While info is typed as Object it is often (but not always) an mx.rpc.events.FaultEvent.

Parameters

info:Object

result

()method 
public function result(data:Object):void

Language Version: ActionScript 3.0
Product Version: Review, Commenting, and Approval Building Block 9.5
Runtime Versions: Flash Player 9, Flash Player 10, AIR (unsupported)

This method is called by a service when the return value has been received. While data is typed as Object, it is often (but not always) an mx.rpc.events.ResultEvent.

Parameters

data:Object