Packagemx.rpc.remoting.mxml
Classpublic class Operation
InheritanceOperation Inheritance Operation Inheritance AbstractOperation Inheritance AbstractInvoker Inheritance EventDispatcher Inheritance Object
Implements IMXMLSupport

The Operation used for RemoteObject when created in an MXML document.



Public Properties
 PropertyDefined By
 InheritedargumentNames : Array
An ordered list of the names of the arguments to pass to a method invocation.
Operation
 Inheritedarguments : Object
The arguments to pass to the Operation when it is invoked.
AbstractOperation
  concurrency : String
The concurrency for this Operation.
Operation
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
 InheritedlastResult : Object
[read-only] The result of the last invocation.
AbstractInvoker
 InheritedmakeObjectsBindable : Boolean
When this value is true, anonymous objects returned are forced to bindable objects.
Operation
 Inheritedname : String
The name of this Operation.
AbstractOperation
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
 Inheritedservice : AbstractService
[read-only] Provides convenient access to the service on which the Operation is being invoked.
AbstractOperation
  showBusyCursor : Boolean
Whether this operation should show the busy cursor while it is executing.
Operation
Public Methods
 MethodDefined By
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event.
EventDispatcher
  
cancel(id:String = null):AsyncToken
Cancels the last service invocation or an invokation with the specified id.
Operation
 Inherited
clearResult(fireBindingEvent:Boolean = true):void
Sets the result property of the invoker to null.
AbstractInvoker
 Inherited
Dispatches an event into the event flow.
EventDispatcher
 Inherited
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
EventDispatcher
 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
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
EventDispatcher
  
Executes the method.
Operation
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
 Inherited
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
EventDispatcher
Events
 Event Summary Defined By
 Inherited Dispatched when Flash Player or an AIR application gains operating system focus and becomes active.EventDispatcher
 Inherited Dispatched when Flash Player or an AIR application loses operating system focus and is becoming inactive.EventDispatcher
 Inherited Dispatched when an Operation call fails.AbstractOperation
 Inherited Dispatched when an Operation invocation successfully returns.AbstractOperation
Property Detail
concurrencyproperty
concurrency:String  [read-write]

The concurrency for this Operation. If it has not been explicitly set the setting from the RemoteObject will be used.


Implementation
    public function get concurrency():String
    public function set concurrency(value:String):void
showBusyCursorproperty 
showBusyCursor:Boolean  [read-write]

Whether this operation should show the busy cursor while it is executing. If it has not been explicitly set the setting from the RemoteObject will be used.


Implementation
    public function get showBusyCursor():Boolean
    public function set showBusyCursor(value:Boolean):void
Method Detail
cancel()method
public override function cancel(id:String = null):AsyncToken

Cancels the last service invocation or an invokation with the specified id. Even though the network operation may still continue, no result or fault event is dispatched.

Parameters

id:String (default = null) — The messageId of the invocation to cancel. Optional. If omitted, the last service invocation is canceled.

Returns
AsyncToken
send()method 
public override function send(... args):AsyncToken

Executes the method. Any arguments passed in are passed along as part of the method call. If there are no arguments passed, the arguments object is used as the source of parameters.

Parameters

... args

Returns
AsyncToken — AsyncToken Call using the asynchronous completion token pattern. The same object is available in the result and fault events from the token property.