| Pakiet | mx.messaging |
| Klasa | public class ChannelSet |
| Dziedziczenie | ChannelSet EventDispatcher Object |
| Podklasy | AdvancedChannelSet |
| Wersja języka: | ActionScript 3.0 |
| Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Domyślna właściwość MXMLchannels
| Właściwość | Zdefiniowane przez | ||
|---|---|---|---|
| authenticated : Boolean [tylko do odczytu]
Indicates whether the ChannelSet has an underlying Channel that successfully
authenticated with its endpoint. | ChannelSet | ||
| channelIds : Array [tylko do odczytu]
The ids of the Channels used by the ChannelSet. | ChannelSet | ||
| channels : Array
Provides access to the Channels in the ChannelSet. | ChannelSet | ||
| clustered : Boolean
Indicates whether the ChannelSet targets a clustered destination. | ChannelSet | ||
| connected : Boolean [tylko do odczytu]
Indicates whether the ChannelSet is connected. | ChannelSet | ||
![]() | constructor : Object
Odwołanie do obiektu klasy lub funkcji konstruktora, dotyczące danej instancji obiektu. | Object | |
| currentChannel : Channel [tylko do odczytu]
Returns the current Channel for the ChannelSet. | ChannelSet | ||
| heartbeatInterval : int
The number of milliseconds between heartbeats sent to the remote
host while this ChannelSet is actively connected but idle. | ChannelSet | ||
| initialDestinationId : String
Provides access to the initial destination this ChannelSet is used to access. | ChannelSet | ||
| messageAgents : Array [tylko do odczytu]
Provides access to the set of MessageAgents that use this ChannelSet. | ChannelSet | ||
| Metoda | Zdefiniowane przez | ||
|---|---|---|---|
Constructs a ChannelSet. | ChannelSet | ||
Adds a Channel to the ChannelSet. | ChannelSet | ||
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Rejestruje obiekt detektora zdarzeń w obiekcie EventDispatcher, dzięki czemu detektor będzie otrzymywał powiadomienia o zdarzeniu. | EventDispatcher | |
Handles a CONNECT ChannelEvent and redispatches the event. | ChannelSet | ||
Handles a DISCONNECT ChannelEvent and redispatches the event. | ChannelSet | ||
Handles a ChannelFaultEvent and redispatches the event. | ChannelSet | ||
Connects a MessageAgent to the ChannelSet. | ChannelSet | ||
Disconnects a specific MessageAgent from the ChannelSet. | ChannelSet | ||
Disconnects all associated MessageAgents and disconnects any underlying Channel that
is connected. | ChannelSet | ||
![]() |
Wywołuje zdarzenie, tj. kieruje je do przepływu zdarzeń. | EventDispatcher | |
![]() |
Sprawdza, czy obiekt EventDispatcher zawiera jakiekolwiek detektory zarejestrowane dla konkretnego typu zdarzeń. | EventDispatcher | |
![]() |
Wskazuje, czy dla obiektu zdefiniowano określoną właściwość. | Object | |
![]() |
Wskazuje, czy instancja klasy Object należy do łańcucha prototypów obiektu określonego jako parametr. | Object | |
Authenticates the ChannelSet with the server using the provided credentials. | ChannelSet | ||
Logs the ChannelSet out from the server. | ChannelSet | ||
![]() |
Wskazuje, czy określona właściwość istnieje i jest przeliczalna. | Object | |
Removes a Channel from the ChannelSet. | ChannelSet | ||
![]() |
Usuwa detektor z obiektu EventDispatcher. | EventDispatcher | |
Sends a message from a MessageAgent over the currently connected Channel. | ChannelSet | ||
Stores the credentials and passes them through to every connected channel. | ChannelSet | ||
![]() |
Ustawia dostępność właściwości dynamicznej używanej w pętlach. | Object | |
![]() |
Zwraca ciąg reprezentujący obiekt — sformatowany zgodnie z konwencjami właściwymi dla ustawień regionalnych. | Object | |
[przesłanianie]
Returns a String containing the ids of the Channels in the ChannelSet. | ChannelSet | ||
![]() |
Zwraca pierwotną wartość dla określonego obiektu. | Object | |
![]() |
Sprawdza, czy detektor zdarzeń określonego typu jest zarejestrowany w tym obiekcie EventDispatcher lub jego elementach macierzystych. | EventDispatcher | |
| Metoda | Zdefiniowane przez | ||
|---|---|---|---|
Redispatches message events from the currently connected Channel. | ChannelSet | ||
| Zdarzenie | Podsumowanie | Zdefiniowane przez | ||
|---|---|---|---|---|
![]() | [zdarzenie broadcast] Wywoływane, gdy program Flash Player lub aplikacja środowiska wykonawczego AIR uzyskuje fokus w systemie operacyjnym i przechodzi w stan aktywny. | EventDispatcher | ||
| Dispatched after a Channel in the ChannelSet has connected to its endpoint. | ChannelSet | |||
| Dispatched after a Channel in the ChannelSet has disconnected from its endpoint. | ChannelSet | |||
| Dispatched after a Channel in the ChannelSet has faulted. | ChannelSet | |||
![]() | [zdarzenie broadcast] Wywoływane, gdy program Flash Player lub aplikacja AIR traci fokus w systemie operacyjnym i przechodzi w stan nieaktywny. | EventDispatcher | ||
| The fault event is dispatched when a login or logout call fails. | ChannelSet | |||
| Dispatched when a property of the ChannelSet changes. | ChannelSet | |||
| The result event is dispatched when a login or logout call successfully returns. | ChannelSet | |||
authenticated | właściwość |
authenticated:Boolean [tylko do odczytu] | Wersja języka: | ActionScript 3.0 |
| Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Indicates whether the ChannelSet has an underlying Channel that successfully authenticated with its endpoint.
Ta właściwość może być używana jako źródło dla tworzenia powiązań danych. Jeśli ta właściwość zostanie zmodyfikowana, zostanie wywołane zdarzenie propertyChange .
Implementacja
public function get authenticated():BooleanchannelIds | właściwość |
channelIds:Array [tylko do odczytu] | Wersja języka: | ActionScript 3.0 |
| Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
The ids of the Channels used by the ChannelSet.
Implementacja
public function get channelIds():Arraychannels | właściwość |
channels:Array| Wersja języka: | ActionScript 3.0 |
| Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Provides access to the Channels in the ChannelSet.
This property may be used to assign a set of channels at once or channels
may be added directly to the ChannelSet via addChannel() individually.
If this ChannelSet is configured automatically the individual
channels are created lazily and added to this property as needed.
Implementacja
public function get channels():Array public function set channels(value:Array):voidZgłasza
IllegalOperationError — If the ChannelSet is
configured, assigning to this property is not allowed.
|
clustered | właściwość |
clustered:Boolean| Wersja języka: | ActionScript 3.0 |
| Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Indicates whether the ChannelSet targets a clustered destination. If true, upon a successful connection the ChannelSet will query the destination for all clustered endpoints for its Channels and will assign failoverURIs to them. Channel ids are used to assign failoverURIs to the proper Channel instances so this requires that all Channels in the ChannelSet have non-null ids and an Error will be thrown when this property is set to true if this is not the case. If the ChannelSet is not using url load balancing on the client this property should not be set to true.
Implementacja
public function get clustered():Boolean public function set clustered(value:Boolean):voidconnected | właściwość |
connected:Boolean [tylko do odczytu] Indicates whether the ChannelSet is connected.
Ta właściwość może być używana jako źródło dla tworzenia powiązań danych. Jeśli ta właściwość zostanie zmodyfikowana, zostanie wywołane zdarzenie propertyChange .
Implementacja
public function get connected():BooleancurrentChannel | właściwość |
currentChannel:Channel [tylko do odczytu] | Wersja języka: | ActionScript 3.0 |
| Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Returns the current Channel for the ChannelSet.
Implementacja
public function get currentChannel():ChannelheartbeatInterval | właściwość |
heartbeatInterval:intThe number of milliseconds between heartbeats sent to the remote host while this ChannelSet is actively connected but idle. Any outbound message traffic will delay heartbeats temporarily, with this number of milliseconds elapsing after the last sent message before the next heartbeat is issued.
This property is useful for applications that connect to a remote host to received pushed updates and are not actively sending any messages, but still wish to be notified of a dropped connection even when the networking layer fails to provide such notification directly. By issuing periodic heartbeats the client can force the networking layer to report a timeout if the underlying connection has dropped without notification and the application can respond to the disconnect appropriately.
Any non-positive value disables heartbeats to the remote host. The default value is 0 indicating that heartbeats are disabled. If the application sets this value it should prefer a longer rather than shorter interval, to avoid placing unnecessary load on the remote host. As an illustrative example, low-level TCP socket keep-alives generally default to an interval of 2 hours. That is a longer interval than most applications that enable heartbeats will likely want to use, but it serves as a clear precedent to prefer a longer interval over a shorter interval.
If the currently connected underlying Channel issues poll requests to the remote host, heartbeats are suppressed because the periodic poll requests effectively take their place.
Implementacja
public function get heartbeatInterval():int public function set heartbeatInterval(value:int):voidinitialDestinationId | właściwość |
initialDestinationId:String| Wersja języka: | ActionScript 3.0 |
| Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Provides access to the initial destination this ChannelSet is used to access. When the clustered property is true, this value is used to request available failover URIs for the configured channels for the destination.
Implementacja
public function get initialDestinationId():String public function set initialDestinationId(value:String):voidmessageAgents | właściwość |
messageAgents:Array [tylko do odczytu] | Wersja języka: | ActionScript 3.0 |
| Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Provides access to the set of MessageAgents that use this ChannelSet.
Implementacja
public function get messageAgents():ArrayChannelSet | () | Konstruktor |
public function ChannelSet(channelIds:Array = null, clusteredWithURLLoadBalancing:Boolean = false)| Wersja języka: | ActionScript 3.0 |
| Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Constructs a ChannelSet.
If the channelIds argument is provided, the ChannelSet will
use automatically configured Channels obtained via ServerConfig.getChannel()
to reach a destination.
Attempting to manually assign Channels to a ChannelSet that uses configured
Channels is not allowed.
If the channelIds argument is not provided or is null,
Channels must be manually created and added to the ChannelSet in order
to connect and send messages.
If the ChannelSet is clustered using url-load-balancing (where each server declares a unique RTMP or HTTP URL and the client fails over from one URL to the next), the first time that a Channel in the ChannelSet successfully connects the ChannelSet will automatically make a request for all of the endpoints across the cluster for all member Channels and will assign these failover URLs to each respective Channel. This allows Channels in the ChannelSet to failover individually, and when failover options for a specific Channel are exhausted the ChannelSet will advance to the next Channel in the set to attempt to reconnect.
Regardless of clustering, if a Channel cannot connect or looses connectivity, the ChannelSet will advance to its next available Channel and attempt to reconnect. This allows the ChannelSet to hunt through Channels that use different protocols, ports, etc., in search of one that can connect to its endpoint successfully.
ParametrychannelIds:Array (default = null) — The ids of configured Channels obtained from ServerConfig for this ChannelSet to
use. If null, Channels must be manually added to the ChannelSet.
| |
clusteredWithURLLoadBalancing:Boolean (default = false) — True if the Channels in the ChannelSet are clustered
using url load balancing.
|
addChannel | () | metoda |
public function addChannel(channel:Channel):void| Wersja języka: | ActionScript 3.0 |
| Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Adds a Channel to the ChannelSet. A Channel with a null id cannot be added to the ChannelSet if the ChannelSet targets a clustered destination.
Parametry
channel:Channel — The Channel to add.
|
Zgłasza
IllegalOperationError — If the ChannelSet is
configured, adding a Channel is not supported.
This error is also thrown if the ChannelSet's clustered property
is true but the Channel has a null id.
|
channelConnectHandler | () | metoda |
public function channelConnectHandler(event:ChannelEvent):void| Wersja języka: | ActionScript 3.0 |
| Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Handles a CONNECT ChannelEvent and redispatches the event.
Parametry
event:ChannelEvent — The ChannelEvent.
|
channelDisconnectHandler | () | metoda |
public function channelDisconnectHandler(event:ChannelEvent):void| Wersja języka: | ActionScript 3.0 |
| Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Handles a DISCONNECT ChannelEvent and redispatches the event.
Parametry
event:ChannelEvent — The ChannelEvent.
|
channelFaultHandler | () | metoda |
public function channelFaultHandler(event:ChannelFaultEvent):void| Wersja języka: | ActionScript 3.0 |
| Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Handles a ChannelFaultEvent and redispatches the event.
Parametry
event:ChannelFaultEvent — The ChannelFaultEvent.
|
connect | () | metoda |
public function connect(agent:MessageAgent):void| Wersja języka: | ActionScript 3.0 |
| Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Connects a MessageAgent to the ChannelSet. Once connected, the agent can use the ChannelSet to send messages.
Parametry
agent:MessageAgent — The MessageAgent to connect.
|
disconnect | () | metoda |
public function disconnect(agent:MessageAgent):void| Wersja języka: | ActionScript 3.0 |
| Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Disconnects a specific MessageAgent from the ChannelSet. If this is the last MessageAgent using the ChannelSet and the current Channel in the set is connected, the Channel will physically disconnect from the server.
Parametry
agent:MessageAgent — The MessageAgent to disconnect.
|
disconnectAll | () | metoda |
public function disconnectAll():void| Wersja języka: | ActionScript 3.0 |
| Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Disconnects all associated MessageAgents and disconnects any underlying Channel that
is connected.
Unlike disconnect(MessageAgent) which is invoked by the disconnect implementations
of specific service components, this method provides a single, convenient point to shut down
connectivity between the client and server.
login | () | metoda |
public function login(username:String, password:String, charset:String = null):mx.rpc:AsyncToken| Wersja języka: | ActionScript 3.0 |
| Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Authenticates the ChannelSet with the server using the provided credentials. Unlike other operations on Channels and the ChannelSet, this operation returns an AsyncToken that client code may add a responder to in order to handle success or failure directly. If the ChannelSet is not connected to the server when this method is invoked it will trigger a connect attempt, and if successful, send the login command to the server. Only one login or logout operation may be pending at a time and overlapping calls will generate an IllegalOperationError. Invoking login when the ChannelSet is already authenticated will generate also generate an IllegalOperationError.
Parametry
username:String — The username.
| |
password:String — The password.
| |
charset:String (default = null) — The character set encoding to use while encoding the
credentials. The default is null, which implies the legacy charset of
ISO-Latin-1. The only other supported charset is "UTF-8".
|
mx.rpc:AsyncToken — Returns a token that client code may add a responder to in order to handle
success or failure directly.
|
Zgłasza
IllegalOperationError — in two situations; if the ChannelSet is
already authenticated, or if a login or logout operation is currently in progress.
|
logout | () | metoda |
public function logout(agent:MessageAgent = null):mx.rpc:AsyncTokenLogs the ChannelSet out from the server. Unlike other operations on Channels and the ChannelSet, this operation returns an AsyncToken that client code may add a responder to in order to handle success or failure directly. If logout is successful any credentials that have been cached for use in automatic reconnects are cleared for the ChannelSet and its Channels and their authenticated state is set to false. If the ChannelSet is not connected to the server when this method is invoked it will trigger a connect attempt, and if successful, send a logout command to the server.
The MessageAgent argument is present to support legacy logout behavior and client code that
invokes this method should not pass a MessageAgent reference. Just invoke logout()
passing no arguments.
This method is also invoked by service components from their logout()
methods, and these components pass a MessageAgent reference to this method when they logout.
The presence of this argument is the trigger to execute legacy logout behavior that differs
from the new behavior described above.
Legacy behavior only sends a logout request to the server if the client is connected
and authenticated.
If these conditions are not met the legacy behavior for this method is to do nothing other
than clear any credentials that have been cached for use in automatic reconnects.
Parametry
agent:MessageAgent (default = null) — Legacy argument. The MessageAgent that is initiating the logout.
|
mx.rpc:AsyncToken — Returns a token that client code may
add a responder to in order to handle success or failure directly.
|
Zgłasza
IllegalOperationError — if a login or logout operation is currently in progress.
|
messageHandler | () | metoda |
protected function messageHandler(event:MessageEvent):voidRedispatches message events from the currently connected Channel.
Parametry
event:MessageEvent — The MessageEvent from the Channel.
|
removeChannel | () | metoda |
public function removeChannel(channel:Channel):void| Wersja języka: | ActionScript 3.0 |
| Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Removes a Channel from the ChannelSet. If the Channel to remove is currently connected and being used by the ChannelSet, it is disconnected as well as removed.
Parametry
channel:Channel — The Channel to remove.
|
Zgłasza
IllegalOperationError — If the ChannelSet is
configured, removing a Channel is not supported.
|
send | () | metoda |
public function send(agent:MessageAgent, message:IMessage):void| Wersja języka: | ActionScript 3.0 |
| Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Sends a message from a MessageAgent over the currently connected Channel.
Parametry
agent:MessageAgent — The MessageAgent sending the message.
| |
message:IMessage — The Message to send.
|
Zgłasza
NoChannelAvailableError — If the ChannelSet has no internal
Channels to use.
|
setCredentials | () | metoda |
public function setCredentials(credentials:String, agent:MessageAgent, charset:String = null):void| Wersja języka: | ActionScript 3.0 |
| Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Stores the credentials and passes them through to every connected channel.
Parametry
credentials:String — The credentials for the MessageAgent.
| |
agent:MessageAgent — The MessageAgent that is setting the credentials.
| |
charset:String (default = null) — The character set encoding used while encoding the
credentials. The default is null, which implies the legacy encoding of
ISO-Latin-1.
|
Zgłasza
IllegalOperationError — in two situations; if credentials
have already been set and an authentication is in progress with the remote
detination, or if authenticated and the credentials specified don't match
the currently authenticated credentials.
|
toString | () | metoda |
override public function toString():String| Wersja języka: | ActionScript 3.0 |
| Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Returns a String containing the ids of the Channels in the ChannelSet.
ZwracaString — String representation of the ChannelSet.
|
channelConnect | Zdarzenie |
mx.messaging.events.ChannelEventwłaściwość ChannelEvent.type =
mx.messaging.events.ChannelEvent.CONNECT| Wersja języka: | ActionScript 3.0 |
| Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Dispatched after a Channel in the ChannelSet has connected to its endpoint.
The CONNECT event type; indicates that the Channel connected to its endpoint.The value of this constant is "channelConnect".
The properties of the event object have the following values:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false |
channel | The channel that generated 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. |
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. |
reconnecting | Indicates whether the channel that generated this event is reconnecting. |
rejected | Indicates whether the channel that generated this event was rejected. This would be true in the event that the channel has been disconnected due to inactivity and should not attempt to failover or connect on an alternate channel. |
channelDisconnect | Zdarzenie |
mx.messaging.events.ChannelEventwłaściwość ChannelEvent.type =
mx.messaging.events.ChannelEvent.DISCONNECT| Wersja języka: | ActionScript 3.0 |
| Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Dispatched after a Channel in the ChannelSet has disconnected from its endpoint.
The DISCONNECT event type; indicates that the Channel disconnected from its endpoint.The value of this constant is "channelDisconnect".
The properties of the event object have the following values:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false |
channel | The channel that generated 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. |
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. |
reconnecting | Indicates whether the channel that generated this event is reconnecting. |
rejected | Indicates whether the channel that generated this event was rejected. This would be true in the event that the channel has been disconnected due to inactivity and should not attempt to failover or connect on an alternate channel. |
channelFault | Zdarzenie |
mx.messaging.events.ChannelFaultEventwłaściwość ChannelFaultEvent.type =
mx.messaging.events.ChannelFaultEvent.FAULT| Wersja języka: | ActionScript 3.0 |
| Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Dispatched after a Channel in the ChannelSet has faulted.
The FAULT event type; indicates that the Channel faulted.The value of this constant is "channelFault".
The properties of the event object have the following values:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false |
channel | The Channel that generated 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. |
faultCode | Provides destination-specific details of the failure. |
faultDetail | Provides access to the destination-specific reason for the failure. |
faultString | Provides access to the underlying reason for the failure if the channel did not raise the failure itself. |
reconnecting | Indicates whether the channel that generated this event is reconnecting. |
rootCause | Provides access to the underlying reason for the failure if the channel did not raise the failure itself. |
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. |
fault | Zdarzenie |
mx.rpc.events.FaultEventwłaściwość FaultEvent.type =
mx.rpc.events.FaultEvent.FAULT| Wersja języka: | ActionScript 3.0 |
| Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
The fault event is dispatched when a login or logout 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. |
propertyChange | Zdarzenie |
mx.events.PropertyChangeEventwłaściwość PropertyChangeEvent.type =
mx.events.PropertyChangeEvent.PROPERTY_CHANGE| Wersja języka: | ActionScript 3.0 |
| Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Dispatched when a property of the ChannelSet changes.
ThePropertyChangeEvent.PROPERTY_CHANGE constant defines the value of the
type property of the event object for a PropertyChange event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
bubbles | Determined by the constructor; defaults to false. |
cancelable | Determined by the constructor; defaults to false. |
kind | The kind of change; PropertyChangeEventKind.UPDATE or PropertyChangeEventKind.DELETE. |
oldValue | The original property value. |
newValue | The new property value, if any. |
property | The property that changed. |
source | The object that contains the property that changed. |
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. |
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 | Zdarzenie |
mx.rpc.events.ResultEventwłaściwość ResultEvent.type =
mx.rpc.events.ResultEvent.RESULT| Wersja języka: | ActionScript 3.0 |
| Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
The result event is dispatched when a login or logout call 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, 12:06 PM Z
Ukryj dziedziczone właściwości publiczne
Pokaż dziedziczone właściwości publiczne