|
The modules described in this chapter provide Flex support.
Compatibility classes/functions for Flex.
| note: | Not available in ActionScript 1.0 and 2.0. |
|---|---|
| see: | Flex on Wikipedia (external) |
| since: | 0.1.0 |
I represent the ActionScript 3 based class flex.messaging.io.ArrayCollection used in the Flex framework.
The ArrayCollection class is a wrapper class that exposes an Array as a collection that can be accessed and manipulated using the methods and properties of the ICollectionView or IList interfaces in the Flex framework.
| See: | ArrayCollection on Livedocs (external) |
|---|---|
| Note: | This class does not implement the RemoteObject part of the documentation. |
| Variable length: | |
| [read-only] The number of items in this collection. Introduced in 0.4. | |
Adds the specified item to the end of the list.
| Parameter: | item (mixed) – The object to add to the collection. |
|---|---|
| Since: | 0.4 |
Adds the item at the specified index.
| Parameters: |
|
|---|---|
| Raises IndexError: | |
If index is less than 0 or greater than the length of the list. |
|
| Since: | 0.4 |
Gets the item at the specified index.
| Parameters: |
|
|---|---|
| Raises IndexError: | |
if index < 0 or index >= length |
|
| Returns: | The item at index index. |
| Return type: | mixed. |
| Since: | 0.4 |
Returns the index of the item if it is in the list such that getItemAt(index) == item.
| Parameter: | item (mixed.) – The item to find. |
|---|---|
| Returns: | The index of the item or -1 if the item is not in the list. |
| Return type: | int |
| Since: | 0.4 |
Removes all items from the list.
| Since: | 0.4 |
|---|
Removes the item at the specified index and returns it. Any items that were after this index are now one index earlier.
| Parameter: | index – The index from which to remove the item. |
|---|---|
| Returns: | The item that was removed. |
| Return type: | mixed |
| Raises IndexError: | |
| If index is less than 0 or greater than length. | |
| Since: | 0.4 |
Places the item at the specified index. If an item was already at that index the new item will replace it and it will be returned.
| Parameters: |
|
|---|---|
| Returns: | The item that was replaced, or None. |
| Return type: | mixed or None. |
| Raises IndexError: | |
If index is less than 0 or greater than length. |
|
| Since: | 0.4 |
Returns an Array that is populated in the same order as the IList implementation.
| Returns: | The array. |
|---|---|
| Return type: | list |
I represent the ActionScript 3 based class flex.messaging.io.ObjectProxy used in the Flex framework. Flex’s ObjectProxy class allows an anonymous, dynamic ActionScript Object to be bindable and report change events.
| See: | ObjectProxy on Livedocs (external) |
|---|
Flex Messaging implementation.
This module contains the message classes used with Flex Data Services.
@see: U{RemoteObject on OSFlash (external) <http://osflash.org/documentation/amf3#remoteobject>}
@since: 0.1
I am used to send RPC requests to a remote endpoint.
@see: U{RemotingMessage on Livedocs (external) <http://livedocs.adobe.com/flex/201/langref/mx/messaging/messages/RemotingMessage.html>}
Provides a mechanism for sending commands related to publish/subscribe messaging, ping, and cluster operations.
@see: U{CommandMessage on Livedocs (external) <http://livedocs.adobe.com/flex/201/langref/mx/messaging/messages/CommandMessage.html>}
@ivar operation: The command @type operation: C{int} @ivar messageRefType: hmm, not sure about this one. @type messageRefType: C{str}
Return a ISmallMessage representation of this command message.
@since: 0.5
I acknowledge the receipt of a message that was sent previously.
Every message sent within the messaging system must receive an acknowledgement.
@see: U{AcknowledgeMessage on Livedocs (external) <http://livedocs.adobe.com/flex/201/langref/mx/messaging/messages/AcknowledgeMessage.html>}
Return a ISmallMessage representation of this acknowledge message.
@since: 0.5
I am the Flex error message to be returned to the client.
This class is used to report errors within the messaging system.
@see: U{ErrorMessage on Livedocs (external) <http://livedocs.adobe.com/flex/201/langref/mx/messaging/messages/ErrorMessage.html>}
Header name for the retryable hint header.
This is used to indicate that the operation that generated the error may be retryable rather than fatal.
Return a ISmallMessage representation of this error message.
@since: 0.5
Abstract base class for all Flex messages.
Messages have two customizable sections; headers and data. The headers property provides access to specialized meta information for a specific message instance. The data property contains the instance specific data that needs to be delivered and processed by the decoder.
@see: U{AbstractMessage on Livedocs (external) <http://livedocs.adobe.com/flex/201/langref/mx/messaging/messages/AbstractMessage.html>}
@type body: C{mixed} @ivar clientId: Indicates which client sent the message. @type clientId: C{str} @ivar destination: Message destination. @type destination: C{str} @ivar headers: Message headers. Core header names start with DS. @type headers: C{dict} @ivar messageId: Unique Message ID. @type messageId: C{str} @ivar timeToLive: How long the message should be considered valid and
deliverable.
@type timeToLive: C{int} @ivar timestamp: Timestamp when the message was generated. @type timestamp: C{int}
Return a ISmallMessage representation of this object. If one is not available, L{NotImplementedError} will be raised.
@since: 0.5
I am the base class for all asynchronous Flex messages.
@see: U{AsyncMessage on Livedocs (external) <http://livedocs.adobe.com/flex/201/langref/mx/messaging/messages/AsyncMessage.html>}
@ivar correlationId: Correlation id of the message. @type correlationId: C{str}
Return a ISmallMessage representation of this async message.
@since: 0.5
Flex Data Management Service implementation.
This module contains the message classes used with Flex Data Management Service.
@since: 0.1.0
I am used to transport an operation that occured on a managed object or collection.
This class of message is transmitted between clients subscribed to a remote destination as well as between server nodes within a cluster. The payload of this message describes all of the relevant details of the operation. This information is used to replicate updates and detect conflicts.
@see: U{DataMessage on Livedocs (external) <http://livedocs.adobe.com/flex/201/langref/mx/data/messages/DataMessage.html>}
Response to L{DataMessage} requests.
@see: U{SequencedMessage on Livedocs (external) <http://livedocs.adobe.com/flex/201/langref/mx/data/messages/SequencedMessage.html>}
This messsage provides information about a partial sequence result.
@see: U{PagedMessage on Livedocs (external) <http://livedocs.adobe.com/flex/201/langref/mx/data/messages/PagedMessage.html>}
Special cases of ErrorMessage will be sent when a data conflict occurs.
This message provides the conflict information in addition to the L{ErrorMessage<pyamf.flex.messaging.ErrorMessage>} information.
@see: U{DataErrorMessage on Livedocs (external) <http://livedocs.adobe.com/flex/201/langref/mx/data/messages/DataErrorMessage.html>}