Paket | mx.rpc |
Klass | public class AbstractOperation |
Arv | AbstractOperation AbstractInvoker EventDispatcher Object |
Underklasser | AbstractOperation, ManagedRemoteServiceOperation, Operation, Operation |
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
send()
method.
Relaterade API-element
Egenskap | Definieras med | ||
---|---|---|---|
arguments : Object
The arguments to pass to the Operation when it is invoked. | AbstractOperation | ||
constructor : Object
En referens till klassobjektet eller konstruktorfunktionen för en given objektinstans. | Object | ||
lastResult : Object [skrivskyddad]
The result of the last invocation. | AbstractInvoker | ||
makeObjectsBindable : Boolean
When this value is true, anonymous objects returned are forced to bindable objects. | AbstractInvoker | ||
name : String
The name of this Operation. | AbstractOperation | ||
operationManager : Function
This property is set usually by framework code which wants to modify the
behavior of a service invocation without modifying the way in which the
service is called externally. | AbstractInvoker | ||
properties : Object
This is a hook primarily for framework developers to register additional user
specified properties for your operation. | AbstractOperation | ||
resultElementType : Class
Like resultType, used to define the ActionScript class used by a given operation though
this property only applies to operations which return a multi-valued result (e.g. | AbstractInvoker | ||
resultType : Class
Specifies an optional return type for the operation. | AbstractInvoker | ||
service : AbstractService [skrivskyddad]
Provides convenient access to the service on which the Operation
is being invoked. | AbstractOperation |
Metod | Definieras med | ||
---|---|---|---|
Creates a new Operation. | AbstractOperation | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registrerar ett händelseavlyssnarobjekt för ett EventDispatcher-objekt så att avlyssnaren får meddelanden om händelser. | EventDispatcher | ||
Cancels the last service invocation or an invokation with the specified ID. | AbstractInvoker | ||
Sets the result property of the invoker to null. | AbstractInvoker | ||
Skickar en händelse till händelseflödet. | EventDispatcher | ||
Kontrollerar om EventDispatcher-objektet har några avlyssnare registrerade för en viss typ av händelse. | EventDispatcher | ||
Anger om det finns en egenskap angiven för ett objekt. | Object | ||
Anger om en instans av klassen Object finns i prototypkedjan för objektet som anges som parameter. | Object | ||
Anger om den angivna egenskapen finns och är uppräkningsbar. | Object | ||
Tar bort en avlyssnare från EventDispatcher-objektet. | EventDispatcher | ||
Executes the method. | AbstractOperation | ||
Anger tillgänglighet för en dynamisk egenskap för slingåtgärder. | Object | ||
This hook is exposed to update the lastResult property. | AbstractInvoker | ||
Returnerar det här objektets strängrepresentation, formaterad i enlighet med språkspecifika konventioner. | Object | ||
Returnerar det angivna objektets strängbeteckning. | Object | ||
Returnerar det angivna objektets primitiva värde. | Object | ||
Kontrollerar om en händelseavlyssnare är registrerad för det här EventDispatcher-objektet eller något av dess överordnade objekt för den angivna händelsetypen. | EventDispatcher |
Händelse | Sammanfattning | Definieras med | ||
---|---|---|---|---|
[utsändningshändelse] Skickas när Flash Player eller AIR får operativsystemfokus och blir aktivt. | EventDispatcher | |||
[utsändningshändelse] Skickas när Flash Player eller AIR förlorar operativsystemfokus och blir inaktivt. | EventDispatcher | |||
Dispatched when an Operation call fails. | AbstractOperation | |||
Dispatched when an Operation invocation successfully returns. | AbstractOperation |
arguments | egenskap |
public var arguments:Object
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
The arguments to pass to the Operation when it is invoked. If you call
the send()
method with no parameters, an array based on
this object is sent. If you call the send()
method with
parameters (or call the function directly on the service) those
parameters are used instead of whatever is stored in this property.
For RemoteObject Operations the associated argumentNames array determines
the order of the arguments passed.
name | egenskap |
name:String
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
The name of this Operation. This is how the Operation is accessed off the service. It can only be set once.
Implementering
public function get name():String
public function set name(value:String):void
properties | egenskap |
public var properties:Object
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
This is a hook primarily for framework developers to register additional user specified properties for your operation.
service | egenskap |
service:AbstractService
[skrivskyddad] Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Provides convenient access to the service on which the Operation is being invoked. Note that the service cannot be changed after the Operation is constructed.
Implementering
public function get service():AbstractService
AbstractOperation | () | Konstruktor |
public function AbstractOperation(service:AbstractService = null, name:String = null)
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Creates a new Operation. This is usually done directly by the MXML compiler or automatically by the service when an unknown Operation has been accessed. It is not recommended that a developer use this constructor directly.
Parametrarservice:AbstractService (default = null ) — The service on which the Operation is being invoked.
| |
name:String (default = null ) — The name of the new Operation.
|
send | () | metod |
public function send(... args):mx.rpc:AsyncToken
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
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.
Parametrar
... args — Optional arguments passed in as part of the method call. If there
are no arguments passed, the arguments object is used as the source of
parameters.
|
mx.rpc:AsyncToken — AsyncToken object.
The same object is available in the result and
fault events from the token property.
|
fault | Händelse |
mx.rpc.events.FaultEvent
egenskap FaultEvent.type =
mx.rpc.events.FaultEvent.FAULT
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Dispatched when an Operation call fails.
The FAULT event type.The properties of the event object have the following values:
Property | Value |
---|---|
bubbles | false |
cancelable | true, calling preventDefault() from the associated token's responder.fault method will prevent the service or operation from dispatching this event |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget . |
fault | The Fault object that contains the details of what caused this event. |
message | The Message associated with this event. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
token | The token that represents the call to the method. Used in the asynchronous completion token pattern. |
result | Händelse |
mx.rpc.events.ResultEvent
egenskap ResultEvent.type =
mx.rpc.events.ResultEvent.RESULT
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Dispatched when an Operation invocation successfully returns.
The RESULT event type.The properties of the event object have the following values:
Property | Value |
---|---|
bubbles | false |
cancelable | true, preventDefault() from the associated token's responder.result method will prevent the service or operation from dispatching this event |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget . |
message | The Message associated with this event. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
result | Result that the RPC call returns. |
token | The token that represents the indiviudal call to the method. Used in the asynchronous completion token pattern. |
Tue Jun 12 2018, 01:40 PM Z