| Package | org.springextensions.actionscript.rpc.net |
| SVN browsing | NetConnectionOperation.as |
| Fisheye | NetConnectionOperation.as |
| Class | public class NetConnectionOperation |
| Inheritance | NetConnectionOperation AbstractOperation flash.events.EventDispatcher |
IOperation that invokes a method on a NetConnection.
See also
Documentation reference: common spring actionscript operations
| Property | Defined by | ||
|---|---|---|---|
![]() | error : *
The error of this operation or
null if no error occurred during this operation. | AbstractOperation | |
| methodName : String [read-only]
| NetConnectionOperation | ||
| parameters : Array [read-only]
| NetConnectionOperation | ||
![]() | result : *
The result of this operation or
null if the operation does not have a result. | AbstractOperation | |
![]() | timeout : int
The timeout in milliseconds.
| AbstractOperation | |
| Property | Defined by | ||
|---|---|---|---|
| netConnection : NetConnection
The
NetConnection used by the current NetConnectionOperation. | NetConnectionOperation | ||
| Method | Defined by | ||
|---|---|---|---|
|
NetConnectionOperation(netConnection:NetConnection, methodName:String, parameters:Array = null)
Creates a new
NetConnectionOperation instance. | NetConnectionOperation | ||
![]() |
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(fault:Object):void
| NetConnectionOperation | ||
|
invokeRemoteMethod():void
| NetConnectionOperation | ||
|
resultHandler(result:Object):void
| NetConnectionOperation | ||
![]() |
startTimeout():void
| AbstractOperation | |
| methodName | property |
methodName:String [read-only]Implementation
public function get methodName():String
| netConnection | property |
netConnection:NetConnection [read-write]
The NetConnection used by the current NetConnectionOperation.
This property can be used as the source for data binding.
Implementation protected function get netConnection():NetConnection
protected function set netConnection(value:NetConnection):void
| parameters | property |
parameters:Array [read-only]Implementation
public function get parameters():Array
| NetConnectionOperation | () | constructor |
public function NetConnectionOperation(netConnection:NetConnection, methodName:String, parameters:Array = null)
Creates a new NetConnectionOperation instance.
netConnection:NetConnection — the netconnection on which the method is invoked
|
|
methodName:String — the name of the method to be invoked
|
|
parameters:Array (default = null) — the parameters passed to the invoked method
|
| faultHandler | () | method |
protected function faultHandler(fault:Object):voidParameters
fault:Object |
| invokeRemoteMethod | () | method |
protected function invokeRemoteMethod():void
| resultHandler | () | method |
protected function resultHandler(result:Object):voidParameters
result:Object |