| Package | org.springextensions.actionscript.rpc.remoting |
| SVN browsing | RemoteObjectOperation.as |
| Fisheye | RemoteObjectOperation.as |
| Class | public class RemoteObjectOperation |
| Inheritance | RemoteObjectOperation AbstractRemoteObjectOperation AbstractRPC AbstractOperation flash.events.EventDispatcher |
IOperation that invokes a method on a remote object.
Documentation reference: services
| Method | Defined by | ||
|---|---|---|---|
|
RemoteObjectOperation(remoteObject:RemoteObject, methodName:String, parameters:Array = null)
Creates a new
RemoteObjectOperation instance. | RemoteObjectOperation | ||
![]() |
addCompleteListener(listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Convenience method for adding a listener to the OperationEvent.COMPLETE event.
| AbstractOperation | |
![]() |
addErrorListener(listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Convenience method for adding a listener to the OperationEvent.ERROR event.
| AbstractOperation | |
![]() |
addTimeoutListener(listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Convenience method for adding a listener to the OperationEvent.TIMEOUT event.
| AbstractOperation | |
![]() |
dispatchCompleteEvent(result:* = null):Boolean
Convenience method for dispatching a
OperationEvent.COMPLETE event. | AbstractOperation | |
![]() |
dispatchErrorEvent(error:* = null):Boolean
Convenience method for dispatching a
OperationEvent.ERROR event. | AbstractOperation | |
![]() |
dispatchTimeoutEvent():Boolean
Convenience method for dispatching a
OperationEvent.TIMEOUT event. | AbstractOperation | |
![]() |
removeCompleteListener(listener:Function, useCapture:Boolean = false):void
Convenience method for removing a listener from the OperationEvent.COMPLETE event.
| AbstractOperation | |
![]() |
removeErrorListener(listener:Function, useCapture:Boolean = false):void
Convenience method for removing a listener from the OperationEvent.ERROR event.
| AbstractOperation | |
![]() |
removeTimeoutListener(listener:Function, useCapture:Boolean = false):void
Convenience method for removing a listener from the OperationEvent.TIMEOUT event.
| AbstractOperation | |
| Method | Defined by | ||
|---|---|---|---|
![]() |
faultHandler(event:FaultEvent):void
Assigns the
FaultEvent value to the error property
and dispatches the OperationEvent.ERROR event. | AbstractRPC | |
|
invokeRemoteMethod():void
Retrieves the
Operation from the RemoteObject instances,
assigns the parameters, calls the Operation.send() and adds a Responder
consisting of the resultHandler and faultHandler methods. | RemoteObjectOperation | ||
![]() |
resultHandler(event:ResultEvent):void
Assigns the
ResultEvent.result value to the result property
and dispatches the OperationEvent.COMPLETE event. | AbstractRPC | |
![]() |
startTimeout():void
| AbstractOperation | |
| RemoteObjectOperation | () | constructor |
public function RemoteObjectOperation(remoteObject:RemoteObject, methodName:String, parameters:Array = null)
Creates a new RemoteObjectOperation instance.
remoteObject:RemoteObject |
|
methodName:String |
|
parameters:Array (default = null) |
| invokeRemoteMethod | () | method |
protected override function invokeRemoteMethod():void
Retrieves the Operation from the RemoteObject instances,
assigns the parameters, calls the Operation.send() and adds a Responder
consisting of the resultHandler and faultHandler methods.