Foundation XML for Flash

Summary of the Properties, Methods , and Events of the XMLConnector Class

This section provides a summary of the properties and methods of the XMLConnector class. Table 8-6 shows the only method of the XMLConnector class.

Table 8-6: The only method of the XMLConnector class

Method

Explanation

trigger

Triggers the XMLConnector class to process the XML document

Table 8-7 summarizes the properties of the XMLConnector class.

Table 8-7: Summary of properties of the XMLConnector class

Property

Explanation

direction

Sets the direction for the data. Either receive, send, or send/receive.

ignoreWhite

Determines whether white space is stripped out of XML data. The default setting is false .

multipleSimultaneousAllowed

Specifies whether multiple XMLConnectors can be triggered at the same time.

params

Lists the XML content sent to a server-side page when an XMLConnector triggers.

results

Lists the XML data received when an XMLConnector triggers.

surpressInvalidCalls

Specifies whether to suppress a call if the parameters are invalid.

URL

Specifies the URL for the external XML document.

Table 8-8 lists the events broadcast by the XMLConnector class.

Table 8-8: Summary of events of the XMLConnector class

Event

Explanation

result

Broadcasts when an XMLConnector has completed its call, i.e., after successfully triggering the data.

send

Broadcasts during the trigger method, when the parameters have been gathered before the call is initiated.

status

Broadcasts when the call starts. Provides information on the status on the call.

Категории