Paket | mx.data.messages |
Sınıf | public class DataMessage |
Miras Alma | DataMessage AsyncMessage AbstractMessage Object |
Alt Sınıflar | UpdateCollectionMessage |
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Özellik | Tanımlayan: | ||
---|---|---|---|
body : Object
The body of a message contains the specific data that needs to be
delivered to the remote destination. | AbstractMessage | ||
clientId : String
The clientId indicates which MessageAgent sent the message. | AbstractMessage | ||
constructor : Object
Belirli bir nesne örneği için sınıf nesnesine veya yapıcı işlevine bir başvuru. | Object | ||
correlationId : String
Provides access to the correlation id of the message. | AsyncMessage | ||
destination : String
The message destination. | AbstractMessage | ||
headers : Object
The headers of a message are an associative array where the key is the
header name and the value is the header value. | AbstractMessage | ||
identity : Object
Provides access to the identity map which defines the unique
identity of the item affected by this DataMessage (relevant for
create/update/delete but not fill operations). | DataMessage | ||
messageId : String
The unique id for the message. | AbstractMessage | ||
operation : uint
Provides access to the operation/command of this DataMessage. | DataMessage | ||
timestamp : Number
Provides access to the time stamp for the message. | AbstractMessage | ||
timeToLive : Number
The time to live value of a message indicates how long the message
should be considered valid and deliverable. | AbstractMessage |
Yöntem | Tanımlayan: | ||
---|---|---|---|
Constructor. | DataMessage | ||
[statik]
Provides a description of the operation specified. | DataMessage | ||
Bir nesnenin belirli bir özelliğinin tanımlı olup olmadığını gösterir. | Object | ||
Returns true if this is a create operation. | DataMessage | ||
Returns true if this message is both an update and its list
of property names has a length of zero. | DataMessage | ||
Object sınıfının bir örneğinin parametre olarak belirtilen nesnenin prototip zincirinde olup olmadığını gösterir. | Object | ||
Belirtilen özelliğin bulunup bulunmadığını ve numaralandırılabilir olup olmadığını gösterir. | Object | ||
Dinamik bir özelliğin döngü işlemlerinde kullanılabilirliğini ayarlar. | Object | ||
Bu nesnenin, yerel ayara özel kurallara göre biçimlendirilmiş dize temsilini döndürür. | Object | ||
Returns a string representation of the message. | AbstractMessage | ||
Belirtilen nesnenin temel değerini döndürür. | Object |
Sabit | Tanımlayan: | ||
---|---|---|---|
BATCHED_OPERATION : uint = 5 [statik]
This operation represents a set of batched operations to be performed
as a single unit. | DataMessage | ||
COUNT_OPERATION : uint = 9 [statik]
This operation requests that a configured <count-method> be
invoked on a remote destination. | DataMessage | ||
CREATE_AND_SEQUENCE_OPERATION : uint = 11 [statik]
This operation requests a create of the specified item from a remote
destination. | DataMessage | ||
CREATE_OPERATION : uint = 0 [statik]
Indicates a create operation. | DataMessage | ||
DELETE_OPERATION : uint = 4 [statik]
This operation indicates that the specified item should be removed. | DataMessage | ||
FILL_OPERATION : uint = 1 [statik]
This operation requests that the remote destination create a sequence
using the remote destination's adapter. | DataMessage | ||
FIND_ITEM_OPERATION : uint = 21 [statik]
Like the FILL_OPERATION but ensures only a single item is returned in
the response array. | DataMessage | ||
GET_OPERATION : uint = 2 [statik]
This operation requests that the remote destination get a specific
managed object based on its unique ID. | DataMessage | ||
GET_OR_CREATE_OPERATION : uint = 10 [statik]
This operation requests an item with the specified identity from the
remote destination. | DataMessage | ||
GET_SEQUENCE_ID_OPERATION : uint = 12 [statik]
This operation requests a sequence id for a set of fill parameters. | DataMessage | ||
MULTI_BATCH_OPERATION : uint = 6 [statik]
This operation represents a set of operations to be performed as a
single unit but which may contain multiple batched, create, update or
delete operations that involve more than one destination, that is,
more than one remote adapter. | DataMessage | ||
PAGE_ITEMS_OPERATION : uint = 20 [statik]
This operation indicates a request for a page of items specified by
identities. | DataMessage | ||
PAGE_OPERATION : uint = 8 [statik]
This operation is used to retrieve a page of sequenced content that is
delivered across several messages instead of in a single message. | DataMessage | ||
RELEASE_COLLECTION_OPERATION : uint = 18 [statik]
This operation indicates that the client is no longer interested in
receiving notification of operations performed on the specified collection. | DataMessage | ||
RELEASE_ITEM_OPERATION : uint = 19 [statik]
This operation indicates that the client is no longer interested in
receiving notification of operations performed on the specified item. | DataMessage | ||
REMOTE_ALIAS : String = "flex.data.messages.DataMessage" [statik]
Remote alias specifying the fully qualified server side class corresponding
to this class. | DataMessage | ||
SYNCHRONIZE_FILL_OPERATION : uint = 13 [statik]
This operation requests that the remote destination create a sequence
using the remote destination's adapter. | DataMessage | ||
TRANSACTED_OPERATION : uint = 7 [statik]
This operation is similar to the MULTI_BATCH_OPERATION with the addition
that the server should encapsulate the multiple batches of messages
within a transaction. | DataMessage | ||
UNKNOWN_OPERATION : uint = 1000 [statik]
Code for an unknown operation type. | DataMessage | ||
UPDATE_BODY_CHANGES : uint = 0 [statik]
This constant is used to access the list of changed property names. | DataMessage | ||
UPDATE_BODY_NEW : uint = 2 [statik]
This constant is used to access the new value of a changed item. | DataMessage | ||
UPDATE_BODY_PREV : uint = 1 [statik]
This constant is used to access the previous value of the changed item. | DataMessage | ||
UPDATE_COLLECTION_OPERATION : uint = 17 [statik]
This operation is sent when a local or remote sequence has been modified
by insert(s) or delete(s). | DataMessage | ||
UPDATE_OPERATION : uint = 3 [statik]
This operation indicates an update to data object has been performed. | DataMessage |
identity | özellik |
public var identity:Object
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Provides access to the identity map which defines the unique identity of the item affected by this DataMessage (relevant for create/update/delete but not fill operations).
operation | özellik |
public var operation:uint
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Provides access to the operation/command of this DataMessage.
Operations indicate how the remote destination should process this
message.
To display a description of operation type use the
getOperationAsString
method.
İlgili API Öğeleri
DataMessage | () | Yapıcı |
public function DataMessage()
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Constructor.
getOperationAsString | () | yöntem |
public static function getOperationAsString(op:uint):String
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Provides a description of the operation specified.
This method is used in toString()
operations on this
message.
Parametreler
op:uint — The operation.
|
String — A String representation of the operation,
or "unknown" if the operation is undefined.
|
Örnek ( Bu örnek nasıl kullanılır? )
var msg:DataMessage = DataMessage(event.message); trace("Current operation -'"+ DataMessage.getOperationAsString(msg.operation)+ "'.");
isCreate | () | yöntem |
public function isCreate():Boolean
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Returns true
if this is a create operation.
Boolean — Boolean indicating if this is a create operation.
|
İlgili API Öğeleri
isEmptyUpdate | () | yöntem |
public function isEmptyUpdate():Boolean
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Returns true
if this message is both an update and its list
of property names has a length of zero.
Boolean — Boolean indicating if this message is both an update and has
a zero length list of property names.
|
BATCHED_OPERATION | Sabit |
public static const BATCHED_OPERATION:uint = 5
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
This operation represents a set of batched operations to be performed
as a single unit.
Clients send a batch when DataManager.commit()
is invoked.
All messages in the batch are intended for the same destination.
The body
property contains all of the messages that belong
within this batch.
COUNT_OPERATION | Sabit |
public static const COUNT_OPERATION:uint = 9
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
This operation requests that a configured <count-method> be
invoked on a remote destination.
The body
property of the message will contain the arguments
that should be passed to the remote destination when invoking the method.
Clients send this operation when the DataManager.count()
method is invoked.
İlgili API Öğeleri
CREATE_AND_SEQUENCE_OPERATION | Sabit |
public static const CREATE_AND_SEQUENCE_OPERATION:uint = 11
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
This operation requests a create of the specified item from a remote
destination.
Clients send this operation when the DataManager.createItem()
method is invoked.
The body
property contains the item that should be created.
İlgili API Öğeleri
CREATE_OPERATION | Sabit |
public static const CREATE_OPERATION:uint = 0
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Indicates a create operation.
The body
property will contain the new item to be created.
When the operation is performed outside of an association a corresponding
UpdateCollectionMessage is delivered indicating the
location/index the item should be added at.
Clients will send this operation when a collection under management of
a DataService uses the IList.addItemAt()
,
IList.addItem()
or IViewCursor.insert()
methods.
İlgili API Öğeleri
DELETE_OPERATION | Sabit |
public static const DELETE_OPERATION:uint = 4
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
This operation indicates that the specified item should be removed.
Clients will receive and send this operation when the item is removed.
Clients will send this operation when DataManager.deleteItem()
or when a collection under managemenet of a data manager
uses the IList.removeItemAt()
or IViewCursor.remove()
method.
İlgili API Öğeleri
FILL_OPERATION | Sabit |
public static const FILL_OPERATION:uint = 1
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
This operation requests that the remote destination create a sequence
using the remote destination's adapter.
The body
property of the message will contain the fill
arguments that should be used when creating the remote sequence.
FIND_ITEM_OPERATION | Sabit |
public static const FIND_ITEM_OPERATION:uint = 21
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Like the FILL_OPERATION but ensures only a single item is returned in the response array.
GET_OPERATION | Sabit |
public static const GET_OPERATION:uint = 2
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
This operation requests that the remote destination get a specific
managed object based on its unique ID.
The identity
property contains the desired object's
identity.
İlgili API Öğeleri
GET_OR_CREATE_OPERATION | Sabit |
public static const GET_OR_CREATE_OPERATION:uint = 10
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
This operation requests an item with the specified identity from the
remote destination.
If no item exists with the identity, a create operation will be performed.
Clients send this operation when the DataManager.getItem()
method is called with non-null default values for the item.
The body
property contains the default values of the item
should it need to be created.
İlgili API Öğeleri
GET_SEQUENCE_ID_OPERATION | Sabit |
public static const GET_SEQUENCE_ID_OPERATION:uint = 12
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
This operation requests a sequence id for a set of fill parameters.
If the sequence exists, it will not be recreated.
If it does not exist, it will be recreated remotely.
Clients send this operation when reconnecting to a remote destination or
when failing over to a new node within a cluster.
This operation is only used if the fetch
attribute of the
<reconnect> tag in the remote destination's configuration XML file
is set to IDENTITY.
İlgili API Öğeleri
MULTI_BATCH_OPERATION | Sabit |
public static const MULTI_BATCH_OPERATION:uint = 6
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
This operation represents a set of operations to be performed as a
single unit but which may contain multiple batched, create, update or
delete operations that involve more than one destination, that is,
more than one remote adapter.
Clients send a multi-batch when DataManager.commit()
is
invoked and there are associations configured for that destination.
Messages in this batch will be sent to multiple destinations.
PAGE_ITEMS_OPERATION | Sabit |
public static const PAGE_ITEMS_OPERATION:uint = 20
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
This operation indicates a request for a page of items specified by
identities.
This is operation is similar to a PAGE_OPERATION
except
the page index is not needed.
Clients send this operation when fetching lazily loaded items for
associations configured using one-to-many and many-to-many.
PAGE_OPERATION | Sabit |
public static const PAGE_OPERATION:uint = 8
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
This operation is used to retrieve a page of sequenced content that is
delivered across several messages instead of in a single message.
It represents a request for a portion of a remote sequence.
Clients send this operation when an item or property is requested that is
not resident locally.
This operation is only performed if either the <paging> tag under
<network> tag has its enabled
attribute set to
true
with a non-zero pageSize
attribute or if
an association is configured with the lazy
attribute set to
true
.
RELEASE_COLLECTION_OPERATION | Sabit |
public static const RELEASE_COLLECTION_OPERATION:uint = 18
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
This operation indicates that the client is no longer interested in
receiving notification of operations performed on the specified collection.
Clients send this operation when DataManager.releaseCollection()
is invoked or if DataManager.fill()
is invoked with an
ArrayCollection which was previously filled with different
parameters or if a one-to-many association's owning item is released.
İlgili API Öğeleri
RELEASE_ITEM_OPERATION | Sabit |
public static const RELEASE_ITEM_OPERATION:uint = 19
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
This operation indicates that the client is no longer interested in
receiving notification of operations performed on the specified item.
Clients send this operation when DataService.releaseItem()
or ItemReference.releaseItem()
is invoked.
İlgili API Öğeleri
REMOTE_ALIAS | Sabit |
public static const REMOTE_ALIAS:String = "flex.data.messages.DataMessage"
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Remote alias specifying the fully qualified server side class corresponding to this class.
SYNCHRONIZE_FILL_OPERATION | Sabit |
public static const SYNCHRONIZE_FILL_OPERATION:uint = 13
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 4.5 |
Çalışma Zamanı Sürümleri: | Flash Player 10.1, AIR 2.0 |
This operation requests that the remote destination create a sequence
using the remote destination's adapter.
The body
property of the message will contain the fill
arguments that should be used when creating the remote sequence.
TRANSACTED_OPERATION | Sabit |
public static const TRANSACTED_OPERATION:uint = 7
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
This operation is similar to the MULTI_BATCH_OPERATION with the addition
that the server should encapsulate the multiple batches of messages
within a transaction.
This operation is only performed when the remote destination has the
<use-transactions>
tag under the <properties>
tag within the destination configuration xml set with a value of
true
UNKNOWN_OPERATION | Sabit |
public static const UNKNOWN_OPERATION:uint = 1000
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Code for an unknown operation type.
UPDATE_BODY_CHANGES | Sabit |
public static const UPDATE_BODY_CHANGES:uint = 0
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
This constant is used to access the list of changed property names.
Use this property with bracket notation on the body
property of a message with an operation
of
UPDATE_OPERATION
.
İlgili API Öğeleri
Örnek ( Bu örnek nasıl kullanılır? )
var msg:DataMessage = DataMessage(event.message); if (msg.operation == DataMessage.UPDATE_OPERATION) { // look at each change and display the old and new values var propertyNames:Array = msg.body[DataMessage.UPDATE_BODY_CHANGES]; var newValues:Object = msg.body[DataMessage.UPDATE_BODY_NEW]; var oldValues:Object = msg.body[DataMessage.UPDATE_BODY_PREV]; var propertyName:String; for (var i:int=0; i<propertyNames.length; i++) { propertyName = propertyNames[i]; trace("Property '"+ propertyName + "' was changed from '" + oldValues[propertyName] + "' to '"+ newValues[propertyName] + "'."); } }
UPDATE_BODY_NEW | Sabit |
public static const UPDATE_BODY_NEW:uint = 2
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
This constant is used to access the new value of a changed item.
Use this property with bracket notation on the body
property of a message with an operation
of
UPDATE_OPERATION
.
İlgili API Öğeleri
Örnek ( Bu örnek nasıl kullanılır? )
var msg:DataMessage = DataMessage(event.message); if (msg.operation == DataMessage.UPDATE_OPERATION) { // look at each change and display the old and new values var propertyNames:Array = msg.body[DataMessage.UPDATE_BODY_CHANGES]; var newValues:Object = msg.body[DataMessage.UPDATE_BODY_NEW]; var oldValues:Object = msg.body[DataMessage.UPDATE_BODY_PREV]; var propertyName:String; for (var i:int=0; i<propertyNames.length; i++) { propertyName = propertyNames[i]; trace("Property '"+ propertyName + "' was changed from '" + oldValues[propertyName] + "' to '"+ newValues[propertyName] + "'."); } }
UPDATE_BODY_PREV | Sabit |
public static const UPDATE_BODY_PREV:uint = 1
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
This constant is used to access the previous value of the changed item.
Use this property with bracket notation on the body
property of a message with an operation
of
UPDATE_OPERATION
.
İlgili API Öğeleri
Örnek ( Bu örnek nasıl kullanılır? )
var msg:DataMessage = DataMessage(event.message); if (msg.operation == DataMessage.UPDATE_OPERATION) { // look at each change and display the old and new values var propertyNames:Array = msg.body[DataMessage.UPDATE_BODY_CHANGES]; var newValues:Object = msg.body[DataMessage.UPDATE_BODY_NEW]; var oldValues:Object = msg.body[DataMessage.UPDATE_BODY_PREV]; var propertyName:String; for (var i:int=0; i<propertyNames.length; i++) { propertyName = propertyNames[i]; trace("Property '"+ propertyName + "' was changed from '" + oldValues[propertyName] + "' to '"+ newValues[propertyName] + "'."); } }
UPDATE_COLLECTION_OPERATION | Sabit |
public static const UPDATE_COLLECTION_OPERATION:uint = 17
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
This operation is sent when a local or remote sequence has been modified by insert(s) or delete(s). This operation provides information about the locations of all insert(s) and delete(s) such that the state of the collection order can be restored.
The body
contains an Array of
UpdateCollectionRanges indicating what items have been
removed and added.
Applying the update collection ranges in order will establish a consistent
ordering of the items within the specified collection.
UPDATE_OPERATION | Sabit |
public static const UPDATE_OPERATION:uint = 3
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
This operation indicates an update to data object has been performed. Clients will receive and send this operation when an item has been updated.
The body
property of the message is an Array containing
specific information about the update that occured.
The DataMessage.UPDATE_BODY_CHANGES
location within the
array contains an array of property names that were changed during the
update.
The DataMessage.UPDATE_BODY_NEW
location within the array
contains the object in its new modified state.
The DataMessage.UPDATE_BODY_PREV
location within the array
contains the object in its state prior to the updates.
Örnek ( Bu örnek nasıl kullanılır? )
var msg:DataMessage = DataMessage(event.message); if (msg.operation == DataMessage.UPDATE_OPERATION) { // look at each change and display the old and new values var propertyNames:Array = msg.body[DataMessage.UPDATE_BODY_CHANGES]; var newValues:Object = msg.body[DataMessage.UPDATE_BODY_NEW]; var oldValues:Object = msg.body[DataMessage.UPDATE_BODY_PREV]; var propertyName:String; for (var i:int=0; i<propertyNames.length; i++) { propertyName = propertyNames[i]; trace("Property '"+ propertyName + "' was changed from '" + oldValues[propertyName] + "' to '"+ newValues[propertyName] + "'."); } }
Tue Jun 12 2018, 01:09 PM Z