ActionScript® 3.0 Reference for the Adobe® Flash® Platform
Home  |  Show Packages and Classes List |  Packages  |  Classes  |  What's New  |  Index  |  Appendixes
lc.foundation.util 

DefaultResponder  - AS3 ADEP Workspace

Packagelc.foundation.util
Classpublic class DefaultResponder
InheritanceDefaultResponder Inheritance Object
Implements IResponder

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Document Services - Workspace 9
Runtime Versions: AIR (unsupported), Flash Player 9, Flash Player 10

The DefaultResponder class is an implementation of the mx.rpc.IResponder interface. It allows you to specify a result handler and fault handler functions.

Related API Elements



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)
Constructor.
DefaultResponder
  
Executes 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
  
Executes when a result or return value is 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: Adobe Digital Enterprise Platform Document Services - Workspace 9
Runtime Versions: AIR (unsupported), Flash Player 9, Flash Player 10

Constructor.

Parameters
resultHandler:Function — Specifies the function that is called when the asynchronous call completes.
 
faultHandler:Function — Specifies a function that is called when the asynchronous call fails.
Method Detail

fault

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

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Document Services - Workspace 9
Runtime Versions: AIR (unsupported), Flash Player 9, Flash Player 10

Executes when an error has been received.

Parameters

info:Object — Specifies the information from an event, such as a mx.rpc.events.FaultEvent object.

result

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

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Document Services - Workspace 9
Runtime Versions: AIR (unsupported), Flash Player 9, Flash Player 10

Executes when a result or return value is received.

Parameters

data:Object — Specifies the data from an event, such as a mx.rpc.events.ResultEvent object.