| Previous | Next | Frames | No Frames |
| Summary: Field | Property | Contructor | Method | Detail: Field | Property | Contructor | Method |
Object
|
+--xp.system.DispatcherObject
|
+--xp.data.Connector
|
+--xp.data.XMLConnector
Field Summary | ||
| public | direction: String | |
| Indicates whether data is being sent, received, or both. | ||
| public | ignoreWhite: Boolean | |
| Indicates whether text nodes containing only white space are discarded during the parsing process. | ||
| public | params: XML | |
| Specifies data that will be sent to the server when the next trigger() operation is executed. | ||
| public | URL: String | |
| The URL used by the component in HTTP operations. | ||
| ||
| ||
| ||
Constructor | ||
| public | XMLConnector ( ) | |
| Create a new XMLConnector instance | ||
Method Summary | ||
| public | onRouteEvent ( e: Event ) | |
| Pick up events from the XMLLoader object | ||
| public | trigger ( ): Boolean | |
| Initiates a remote procedure call | ||
| ||
| ||
| public var direction: String |
| Indicates whether data is being sent, received, or both. Property; indicates whether data is being sent, received, or both. The values are the following: send XML data for the params property is sent by HTTP POST method to the URL for the XML document. Any data that is returned is ignored. The results property is not set to anything, and there is no result event. Note: The params and results properties and the result event are inherited from the RPC component API. receive No params data is sent to the URL. The URL for the XML document is accessed through HTTP GET, and valid XML data is expected from the URL. send/receive The params data is sent to the URL, and valid XML data is expected from the URL |
| public var ignoreWhite: Boolean |
| Indicates whether text nodes containing only white space are discarded during the parsing process. A Boolean value. When this parameter is set to true, the text nodes that contain only white space are discarded during the parsing process. Text nodes with leading or trailing white space are unaffected. The default setting is truew. |
| public var params: XML |
| Specifies data that will be sent to the server when the next trigger() operation is executed. Specifies data that will be sent to the server when the next trigger() operation is executed. |
| public var URL: String |
| The URL used by the component in HTTP operations. The URL that this component uses when carrying out HTTP operations. This URL may be an absolute or relative URL. The URL is subject to all the standard Flash Player security protections. |
|
| Create a new XMLConnector instance |
|
| Pick up events from the XMLLoader object |
|
|
| Initiates a remote procedure call initiates a remote procedure call. Each RPC component defines exactly what this involves. If the operation is successful, the results of the operation appear in the RPC component’s results property. The trigger() method performs the following steps: If any data is bound to the params property, the method executes all the bindings to ensure that up-to-date data is available. This also causes data validation to occur. If the data is not valid and suppressInvalidCalls is set to true, the operation is discontinued. If the operation continues, the send event is emitted. The actual remote call is initiated using the connection method indicated (for example, HTTP). |
The following table lists events of the XMLConnector class.