Packageorg.springextensions.actionscript.rpc.remoting
SVN browsingRemoteObjectOperation.as
FisheyeRemoteObjectOperation.as
Classpublic class RemoteObjectOperation
InheritanceRemoteObjectOperation Inheritance AbstractRemoteObjectOperation Inheritance AbstractRPC Inheritance AbstractOperation Inheritance flash.events.EventDispatcher

An IOperation that invokes a method on a remote object.



Documentation reference: services


Public Properties
 PropertyDefined by
 Inheritederror : *
The error of this operation or null if no error occurred during this operation.
AbstractOperation
 InheritedmethodName : String
AbstractRPC
 Inheritedparameters : Array
AbstractRPC
 Inheritedresult : *
The result of this operation or null if the operation does not have a result.
AbstractOperation
 Inheritedtimeout : int
The timeout in milliseconds.
AbstractOperation
Protected Properties
 PropertyDefined by
 InheritedremoteObject : RemoteObject
The RemoteObject instance that is used by the current AbstractRemoteObjectOperation to perform its task.
AbstractRemoteObjectOperation
Public Methods
 MethodDefined by
  
RemoteObjectOperation(remoteObject:RemoteObject, methodName:String, parameters:Array = null)
Creates a new RemoteObjectOperation instance.
RemoteObjectOperation
 Inherited
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
 Inherited
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
 Inherited
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
 Inherited
dispatchCompleteEvent(result:* = null):Boolean
Convenience method for dispatching a OperationEvent.COMPLETE event.
AbstractOperation
 Inherited
dispatchErrorEvent(error:* = null):Boolean
Convenience method for dispatching a OperationEvent.ERROR event.
AbstractOperation
 Inherited
Convenience method for dispatching a OperationEvent.TIMEOUT event.
AbstractOperation
 Inherited
removeCompleteListener(listener:Function, useCapture:Boolean = false):void
Convenience method for removing a listener from the OperationEvent.COMPLETE event.
AbstractOperation
 Inherited
removeErrorListener(listener:Function, useCapture:Boolean = false):void
Convenience method for removing a listener from the OperationEvent.ERROR event.
AbstractOperation
 Inherited
removeTimeoutListener(listener:Function, useCapture:Boolean = false):void
Convenience method for removing a listener from the OperationEvent.TIMEOUT event.
AbstractOperation
Protected Methods
 MethodDefined by
 Inherited
faultHandler(event:FaultEvent):void
Assigns the FaultEvent value to the error property and dispatches the OperationEvent.ERROR event.
AbstractRPC
  
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
 Inherited
resultHandler(event:ResultEvent):void
Assigns the ResultEvent.result value to the result property and dispatches the OperationEvent.COMPLETE event.
AbstractRPC
 Inherited
startTimeout():void
AbstractOperation
Events
 EventSummaryDefined by
 Inherited Dispatched when the current AbstractOperation has completed its functionality successfully.AbstractOperation
 Inherited Dispatched when the current AbstractOperation encountered an error.AbstractOperation
 Inherited Dispatched when the current AbstractOperation timed out.AbstractOperation
Constructor detail
RemoteObjectOperation()constructor
public function RemoteObjectOperation(remoteObject:RemoteObject, methodName:String, parameters:Array = null)

Creates a new RemoteObjectOperation instance.

Parameters
remoteObject:RemoteObject
 
methodName:String
 
parameters:Array (default = null)
Method detail
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.