Paket | mx.messaging |
Klass | public class MessageAgent |
Arv | MessageAgent EventDispatcher Object |
Implementerar | IMXMLObject |
Underklasser | AbstractConsumer, AbstractProducer |
Språkversion: | ActionScript 3.0 |
Produktversioner: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Note: For advanced use only. Use this class for creating custom message agents like the existing Producer and Consumer classes.
MXML-syntaxDölj MXML-syntaxAll message agent classes, including the Producer and Consumer classes, extend MessageAgent and inherit the following tag attributes:
<mx:tagname
Properties channelSet="No default." clientId="No default." connected="false" destination="No default." requestTimeout="-1" subtopic="No default." Events acknowledge="No default." channelConnect="No default." channelDisconnect="No default." channelFault="No default." fault="No default." propertyChange="No default." />
Egenskap | Definieras med | ||
---|---|---|---|
authenticated : Boolean [skrivskyddad]
Indicates if this MessageAgent is using an authenticated connection to
its destination. | MessageAgent | ||
channelSet : ChannelSet
Provides access to the ChannelSet used by the MessageAgent. | MessageAgent | ||
clientId : String [skrivskyddad]
Provides access to the client id for the MessageAgent. | MessageAgent | ||
connected : Boolean [skrivskyddad]
Indicates whether this MessageAgent is currently connected to its
destination via its ChannelSet. | MessageAgent | ||
constructor : Object
En referens till klassobjektet eller konstruktorfunktionen för en given objektinstans. | Object | ||
destination : String
Provides access to the destination for the MessageAgent. | MessageAgent | ||
requestTimeout : int
Provides access to the request timeout in seconds for sent messages. | MessageAgent |
Metod | Definieras med | ||
---|---|---|---|
Constructor. | MessageAgent | ||
Invoked by a MessageResponder upon receiving a result for a sent
message. | MessageAgent | ||
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 | ||
Handles a CONNECT ChannelEvent. | MessageAgent | ||
Handles a DISCONNECT ChannelEvent. | MessageAgent | ||
Handles a ChannelFaultEvent. | MessageAgent | ||
Disconnects the MessageAgent's network connection. | MessageAgent | ||
Skickar en händelse till händelseflödet. | EventDispatcher | ||
Invoked by a MessageResponder upon receiving a fault for a sent message. | MessageAgent | ||
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 | ||
Returns true if there are any pending requests for the passed in message. | MessageAgent | ||
Called after the implementing object has been created
and all properties specified on the tag have been assigned. | MessageAgent | ||
Anger om en instans av klassen Object finns i prototypkedjan för objektet som anges som parameter. | Object | ||
Logs the MessageAgent out from its remote destination. | MessageAgent | ||
Anger om den angivna egenskapen finns och är uppräkningsbar. | Object | ||
Tar bort en avlyssnare från EventDispatcher-objektet. | EventDispatcher | ||
Sets the credentials that the MessageAgent uses to authenticate to
destinations. | MessageAgent | ||
Anger tillgänglighet för en dynamisk egenskap för slingåtgärder. | Object | ||
Sets the remote credentials that will be passed through to the remote destination
for authenticating to secondary systems. | MessageAgent | ||
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 |
Metod | Definieras med | ||
---|---|---|---|
Handles the authentication fault on the server. | MessageAgent | ||
Used to automatically initialize the channelSet property for the
MessageAgent before it connects for the first time. | MessageAgent | ||
Sends a Message from the MessageAgent to its destination using the
agent's ChannelSet. | MessageAgent | ||
This function should be overriden by sublasses to implement reauthentication due to
server session time-out behavior specific to them. | MessageAgent |
Händelse | Sammanfattning | Definieras med | ||
---|---|---|---|---|
Dispatched when an acknowledge message is received for a sent message. | MessageAgent | |||
[utsändningshändelse] Skickas när Flash Player eller AIR får operativsystemfokus och blir aktivt. | EventDispatcher | |||
Dispatched when the underlying Channel the MessageAgent is using connects. | MessageAgent | |||
Dispatched when the underlying Channel the MessageAgent is using disconnects. | MessageAgent | |||
Dispatched when the underlying Channel the MessageAgent is using faults. | MessageAgent | |||
[utsändningshändelse] Skickas när Flash Player eller AIR förlorar operativsystemfokus och blir inaktivt. | EventDispatcher | |||
Dispatched when a message fault occurs. | MessageAgent | |||
Dispatched when the connected property of the MessageAgent changes. | MessageAgent |
authenticated | egenskap |
authenticated:Boolean
[skrivskyddad] Indicates if this MessageAgent is using an authenticated connection to its destination.
Den här egenskapen kan användas som källan för databindning. När den här egenskapen ändras, skickas händelsen propertyChange
.
Implementering
public function get authenticated():Boolean
channelSet | egenskap |
channelSet:ChannelSet
Språkversion: | ActionScript 3.0 |
Produktversioner: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Provides access to the ChannelSet used by the MessageAgent. The ChannelSet can be manually constructed and assigned, or it will be dynamically initialized to use the configured Channels for the destination for this MessageAgent.
Den här egenskapen kan användas som källan för databindning. När den här egenskapen ändras, skickas händelsen propertyChange
.
Implementering
public function get channelSet():ChannelSet
public function set channelSet(value:ChannelSet):void
clientId | egenskap |
clientId:String
[skrivskyddad] Språkversion: | ActionScript 3.0 |
Produktversioner: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Provides access to the client id for the MessageAgent. MessageAgents are assigned their client id by the remote destination and this value is used to route messages from the remote destination to the proper MessageAgent.
Den här egenskapen kan användas som källan för databindning. När den här egenskapen ändras, skickas händelsen propertyChange
.
Implementering
public function get clientId():String
connected | egenskap |
connected:Boolean
[skrivskyddad] Språkversion: | ActionScript 3.0 |
Produktversioner: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Indicates whether this MessageAgent is currently connected to its
destination via its ChannelSet. The propertyChange
event is dispatched when
this property changes.
Den här egenskapen kan användas som källan för databindning. När den här egenskapen ändras, skickas händelsen propertyChange
.
Implementering
public function get connected():Boolean
destination | egenskap |
destination:String
Språkversion: | ActionScript 3.0 |
Produktversioner: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Provides access to the destination for the MessageAgent. Changing the destination will disconnect the MessageAgent if it is currently connected.
Den här egenskapen kan användas som källan för databindning. När den här egenskapen ändras, skickas händelsen propertyChange
.
Implementering
public function get destination():String
public function set destination(value:String):void
Utlöser
InvalidDestinationError — If the destination is null or
zero-length.
|
requestTimeout | egenskap |
requestTimeout:int
Språkversion: | ActionScript 3.0 |
Produktversioner: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Provides access to the request timeout in seconds for sent messages. If an acknowledgement, response or fault is not received from the remote destination before the timeout is reached the message is faulted on the client. A value less than or equal to zero prevents request timeout.
Den här egenskapen kan användas som källan för databindning. När den här egenskapen ändras, skickas händelsen propertyChange
.
Implementering
public function get requestTimeout():int
public function set requestTimeout(value:int):void
MessageAgent | () | Konstruktor |
public function MessageAgent()
Språkversion: | ActionScript 3.0 |
Produktversioner: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Constructor.
acknowledge | () | metod |
public function acknowledge(ackMsg:AcknowledgeMessage, msg:IMessage):void
Språkversion: | ActionScript 3.0 |
Produktversioner: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Invoked by a MessageResponder upon receiving a result for a sent
message. Subclasses may override this method if they need to perform
custom acknowledgement processing, but must invoke
super.acknowledge()
as well. This method dispatches a
MessageAckEvent.
Parametrar
ackMsg:AcknowledgeMessage — The AcknowledgMessage returned.
| |
msg:IMessage — The original sent message.
|
channelConnectHandler | () | metod |
public function channelConnectHandler(event:ChannelEvent):void
Språkversion: | ActionScript 3.0 |
Produktversioner: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Handles a CONNECT ChannelEvent. Subclasses that need to perform custom
processing should override this method, and invoke
super.channelConnectHandler()
.
Parametrar
event:ChannelEvent — The ChannelEvent.
|
channelDisconnectHandler | () | metod |
public function channelDisconnectHandler(event:ChannelEvent):void
Språkversion: | ActionScript 3.0 |
Produktversioner: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Handles a DISCONNECT ChannelEvent. Subclasses that need to perform
custom processing should override this method, and invoke
super.channelDisconnectHandler()
.
Parametrar
event:ChannelEvent — The ChannelEvent.
|
channelFaultHandler | () | metod |
public function channelFaultHandler(event:ChannelFaultEvent):void
Språkversion: | ActionScript 3.0 |
Produktversioner: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Handles a ChannelFaultEvent. Subclasses that need to perform custom
processing should override this method, and invoke
super.channelFaultHandler()
.
Parametrar
event:ChannelFaultEvent — ChannelFaultEvent
|
disconnect | () | metod |
public function disconnect():void
Språkversion: | ActionScript 3.0 |
Produktversioner: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Disconnects the MessageAgent's network connection. This method does not wait for outstanding network operations to complete.
fault | () | metod |
public function fault(errMsg:ErrorMessage, msg:IMessage):void
Språkversion: | ActionScript 3.0 |
Produktversioner: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Invoked by a MessageResponder upon receiving a fault for a sent message.
Subclasses may override this method if they need to perform custom fault
processing, but must invoke super.fault()
as well. This
method dispatchs a MessageFaultEvent.
Parametrar
errMsg:ErrorMessage — The ErrorMessage.
| |
msg:IMessage — The original sent message that caused this fault.
|
handleAuthenticationFault | () | metod |
protected function handleAuthenticationFault(errMsg:ErrorMessage, msg:IMessage):void
Språkversion: | ActionScript 3.0 |
Produktversioner: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Handles the authentication fault on the server. If the authenticated flag is true, the authentication fault must have been caused by a session expiration on the server. Set the authenticated state to false and if loginAfterDisconnect flag is enabled, resend credentials to the server by disconnecting and resending the message again.
Parametrar
errMsg:ErrorMessage — The Error Message.
| |
msg:IMessage — The message that caused the fault and should be resent once we have
disconnected/connected causing re-authentication.
|
hasPendingRequestForMessage | () | metod |
public function hasPendingRequestForMessage(msg:IMessage):Boolean
Språkversion: | ActionScript 3.0 |
Produktversioner: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Returns true if there are any pending requests for the passed in message. This method should be overriden by subclasses
Parametrar
msg:IMessage — The message for which the existence of pending requests is checked.
|
Boolean — Returns true if there are any pending requests for the
passed in message.
|
initChannelSet | () | metod |
protected function initChannelSet(message:IMessage):void
Språkversion: | ActionScript 3.0 |
Produktversioner: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Used to automatically initialize the channelSet
property for the
MessageAgent before it connects for the first time.
Subtypes may override to perform custom initialization.
Parametrar
message:IMessage — The message that needs to be sent.
|
initialized | () | metod |
public function initialized(document:Object, id:String):void
Språkversion: | ActionScript 3.0 |
Produktversioner: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Called after the implementing object has been created and all properties specified on the tag have been assigned.
Parametrar
document:Object — MXML document that created this object.
| |
id:String — id used by the document to refer to this object.
If the object is a deep property on the document, id is null.
|
internalSend | () | metod |
protected function internalSend(message:IMessage, waitForClientId:Boolean = true):void
Språkversion: | ActionScript 3.0 |
Produktversioner: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Sends a Message from the MessageAgent to its destination using the agent's ChannelSet. MessageAgent subclasses must use this method to send their messages.
Parametrar
message:IMessage — The message to send.
| |
waitForClientId:Boolean (default = true ) — If true the message may be queued until a clientId has been
assigned to the agent. In general this is the desired behavior.
For special behavior (automatic reconnect and resubscribe) the
agent may pass false to override the default queuing behavior.
|
Utlöser
InvalidDestinationError — If no destination is set.
|
logout | () | metod |
public function logout():void
Språkversion: | ActionScript 3.0 |
Produktversioner: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Logs the MessageAgent out from its remote destination.
Logging out of a destination applies to everything connected using the same ChannelSet
as specified in the server configuration. For example, if several DataService components
are connected over an RTMP channel and logout()
is invoked on one of them,
all other client components that are connected using the same ChannelSet are also logged out.
Note: Adobe recommends that you use the mx.messaging.ChannelSet.logout() method rather than this method.
Relaterade API-element
reAuthorize | () | metod |
protected function reAuthorize(msg:IMessage):void
Språkversion: | ActionScript 3.0 |
Produktversioner: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
This function should be overriden by sublasses to implement reauthentication due to server session time-out behavior specific to them. In general, it should follow disconnect, connect, resend message pattern.
Parametrar
msg:IMessage — The message that caused the fault and should be resent once we have
disconnected/connected causing reauthentication.
|
setCredentials | () | metod |
public function setCredentials(username:String, password:String, charset:String = null):void
Språkversion: | ActionScript 3.0 |
Produktversioner: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Sets the credentials that the MessageAgent uses to authenticate to destinations. The credentials are applied to all services connected over the same ChannelSet.
Parametrar
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".
|
Utlöser
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.
|
setRemoteCredentials | () | metod |
public function setRemoteCredentials(username:String, password:String, charset:String = null):void
Språkversion: | ActionScript 3.0 |
Produktversioner: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Sets the remote credentials that will be passed through to the remote destination for authenticating to secondary systems.
Parametrar
username:String — The username.
| |
password:String — The password.
| |
charset:String (default = null ) — The character set encoding to use while encoding the
remote credentials. The default is null, which implies the legacy
charset of ISO-Latin-1. The only other currently supported option is
"UTF-8".
|
acknowledge | Händelse |
mx.messaging.events.MessageAckEvent
egenskap MessageAckEvent.type =
mx.messaging.events.MessageAckEvent.ACKNOWLEDGE
Språkversion: | ActionScript 3.0 |
Produktversioner: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3, BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1, Flash Player 9, AIR 1.1 |
Dispatched when an acknowledge message is received for a sent message.
The ACKNOWLEDGE event type; dispatched upon receipt of an acknowledgement.The value of this constant is "acknowledge"
.
The properties of the event object have the following values:
Property | Value |
---|---|
acknowledgeMessage | Utility property to get the message property from MessageEvent as an AcknowledgeMessage. |
bubbles | false |
cancelable | false |
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 . |
correlate | The original Message correlated with this acknowledgement. |
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. |
channelConnect | Händelse |
mx.messaging.events.ChannelEvent
egenskap ChannelEvent.type =
mx.messaging.events.ChannelEvent.CONNECT
Språkversion: | ActionScript 3.0 |
Produktversioner: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Dispatched when the underlying Channel the MessageAgent is using connects.
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 | Händelse |
mx.messaging.events.ChannelEvent
egenskap ChannelEvent.type =
mx.messaging.events.ChannelEvent.DISCONNECT
Språkversion: | ActionScript 3.0 |
Produktversioner: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Dispatched when the underlying Channel the MessageAgent is using disconnects.
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 | Händelse |
mx.messaging.events.ChannelFaultEvent
egenskap ChannelFaultEvent.type =
mx.messaging.events.ChannelFaultEvent.FAULT
Språkversion: | ActionScript 3.0 |
Produktversioner: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Dispatched when the underlying Channel the MessageAgent is using faults.
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 | Händelse |
mx.messaging.events.MessageFaultEvent
egenskap MessageFaultEvent.type =
mx.messaging.events.MessageFaultEvent.FAULT
Språkversion: | ActionScript 3.0 |
Produktversioner: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Dispatched when a message fault occurs.
The FAULT event type; dispatched for a message fault.The value of this constant is "fault"
.
The properties of the event object have the following values:
Property | Value |
---|---|
bubbles | false |
cancelable | false |
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. |
message | The ErrorMessage for this event. |
rootCause | Provides access to the underlying reason for the failure, if one exists. |
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. |
propertyChange | Händelse |
mx.events.PropertyChangeEvent
egenskap PropertyChangeEvent.type =
mx.events.PropertyChangeEvent.PROPERTY_CHANGE
Språkversion: | ActionScript 3.0 |
Produktversioner: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Dispatched when the connected
property of the MessageAgent changes.
Also dispatched when the subscribed
of a Consumer changes.
PropertyChangeEvent.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. |
Relaterade API-element
Tue Jun 12 2018, 01:40 PM Z