Packageorg.springextensions.actionscript.rpc.net
SVN browsingNetConnectionOperation.as
FisheyeNetConnectionOperation.as
Classpublic class NetConnectionOperation
InheritanceNetConnectionOperation Inheritance AbstractOperation Inheritance flash.events.EventDispatcher

An IOperation that invokes a method on a NetConnection.

See also

flash.net.NetConnection


Documentation reference: common spring actionscript operations


Public Properties
 PropertyDefined by
 Inheritederror : *
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
 Inheritedresult : *
The result of this operation or null if the operation does not have a result.
AbstractOperation
Protected Properties
 PropertyDefined by
  netConnection : NetConnection
The NetConnection used by the current NetConnectionOperation.
NetConnectionOperation
Public Methods
 MethodDefined by
  
NetConnectionOperation(netConnection:NetConnection, methodName:String, parameters:Array = null)
Creates a new NetConnectionOperation instance.
NetConnectionOperation
 Inherited
addCompleteListener(listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
AbstractOperation
 Inherited
addErrorListener(listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
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
removeCompleteListener(listener:Function, useCapture:Boolean = false):void
AbstractOperation
 Inherited
removeErrorListener(listener:Function, useCapture:Boolean = false):void
AbstractOperation
Protected Methods
 MethodDefined by
  
faultHandler(fault:Object):void
NetConnectionOperation
  
NetConnectionOperation
  
resultHandler(result:Object):void
NetConnectionOperation
Events
 EventSummaryDefined by
 Inherited Dispatched when the current AbstractOperation has completed its functionality succesfully.AbstractOperation
 Inherited Dispatched when the current AbstractOperation encountered an error.AbstractOperation
Property detail
methodNameproperty
methodName:String  [read-only]Implementation
    public function get methodName():String
netConnectionproperty 
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
parametersproperty 
parameters:Array  [read-only]Implementation
    public function get parameters():Array
Constructor detail
NetConnectionOperation()constructor
public function NetConnectionOperation(netConnection:NetConnection, methodName:String, parameters:Array = null)

Creates a new NetConnectionOperation instance.

Parameters
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
Method detail
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