| Pacote | mx.rpc.events |
| Classe | public class ResultEvent |
| Herança | ResultEvent AbstractEvent MessageEvent Event Object |
| Subclasses | ColdFusionServiceResultEvent, DataServiceResultEvent, SyncResultEvent |
| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | Flash Player 9, AIR 1.1 |
Propriedades públicas
| Propriedade | Definido por | ||
|---|---|---|---|
![]() | bubbles : Boolean [somente leitura]
Indica se um evento é do tipo bubbling. | Event | |
![]() | cancelable : Boolean [somente leitura]
Indica se o comportamento associado ao evento pode ser impedido. | Event | |
![]() | constructor : Object
Uma referência ao objeto de classe ou à função de construtor de uma determinada ocorrência de objeto. | Object | |
![]() | currentTarget : Object [somente leitura]
O objeto que está processando ativamente o objeto Event com um ouvinte de evento. | Event | |
![]() | eventPhase : uint [somente leitura]
A fase atual no fluxo de eventos. | Event | |
| headers : Object
In certain circumstances, headers may also be returned with a result to
provide further context. | ResultEvent | ||
![]() | message : IMessage
The Message associated with this event. | MessageEvent | |
| result : Object [somente leitura]
Result that the RPC call returns. | ResultEvent | ||
| statusCode : int [somente leitura]
If the source message was sent via HTTP, this property provides access
to the HTTP response status code (if available), otherwise the value is
0. | ResultEvent | ||
![]() | target : Object [somente leitura]
O destino de evento. | Event | |
![]() | token : mx.rpc:AsyncToken [somente leitura]
The token that represents the call to the method. | AbstractEvent | |
![]() | type : String [somente leitura]
O tipo de evento. | Event | |
Métodos públicos
| Método | Definido por | ||
|---|---|---|---|
ResultEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = true, result:Object = null, token:mx.rpc:AsyncToken = null, message:IMessage = null)
Creates a new ResultEvent. | ResultEvent | ||
![]() | [substituir]
Clones the MessageEvent. | MessageEvent | |
![]() | [estático]
Utility method to create a new MessageEvent that doesn't bubble and
is not cancelable. | MessageEvent | |
![]() |
Uma função de utilitário para implementar o método toString() em classes ActionScript 3.0 Event personalizadas. | Event | |
![]() |
Indica se um objeto tem uma propriedade especificada definida. | Object | |
![]() |
Verifica se o método preventDefault() foi chamado no evento. | Event | |
![]() |
Indica se uma ocorrência da classe Object está na cadeia de protótipos do objeto especificado como o parâmetro. | Object | |
![]() |
Cancela um comportamento padrão de evento se esse comportamento puder ser cancelado. | Event | |
![]() |
Indica se a propriedade especificada existe e é enumerável. | Object | |
![]() |
Define a disponibilidade de uma propriedade dinâmica para operações de repetição. | Object | |
![]() |
Impede o processamento de qualquer ouvinte de evento no nó atual e qualquer nó subsequente no fluxo de eventos. | Event | |
![]() |
Impede o processamento de algum ouvinte de evento em nós subsequentes ao nó atual no fluxo de eventos. | Event | |
![]() |
Retorna a representação da string deste objeto, formatado segundo as convenções específicas para a localidade. | Object | |
[substituir]
Returns a string representation of the ResultEvent. | ResultEvent | ||
![]() |
Retorna o valor primitivo do objeto especificado. | Object | |
Constantes públicas
| Constante | Definido por | ||
|---|---|---|---|
| RESULT : String = "result" [estático]
The RESULT event type. | ResultEvent | ||
Detalhes da propriedade
headers | propriedade |
headers:Object| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | Flash Player 9, AIR 1.1 |
In certain circumstances, headers may also be returned with a result to provide further context.
Implementação
public function get headers():Object public function set headers(value:Object):voidresult | propriedade |
statusCode | propriedade |
statusCode:int [somente leitura] | Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | Flash Player 9, AIR 1.1 |
If the source message was sent via HTTP, this property provides access to the HTTP response status code (if available), otherwise the value is 0.
Implementação
public function get statusCode():intDetalhes do construtor
ResultEvent | () | Construtor |
public function ResultEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = true, result:Object = null, token:mx.rpc:AsyncToken = null, message:IMessage = null)| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | Flash Player 9, AIR 1.1 |
Creates a new ResultEvent.
Parâmetrostype:String — The event type; indicates the action that triggered the event.
| |
bubbles:Boolean (default = false) — Specifies whether the event can bubble up the display list hierarchy.
| |
cancelable:Boolean (default = true) — Specifies whether the behavior associated with the event can be prevented.
| |
result:Object (default = null) — Object that holds the actual result of the call.
| |
token:mx.rpc:AsyncToken (default = null) — Token that represents the call to the method. Used in the asynchronous completion token pattern.
| |
message:IMessage (default = null) — Source Message of the result.
|
Detalhes do método
toString | () | método |
Detalhes da constante
RESULT | Constante |
public static const RESULT:String = "result"| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | Flash Player 9, AIR 1.1 |
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. |
Wed Jun 13 2018, 11:10 AM Z
Ocultar propriedades públicas herdadas
Mostrar propriedades públicas herdadas