User Guide
1489
59
CHAPTER 59
XMLConnector component
(Flash Professional only)
The XMLConnector component lets you read or write XML documents using HTTP GET
and
POST operations. It acts as a connector between other components and external XML data
sources. The XMLConnector component communicates with other components in your
application using either ActionScript code or data binding features in the Flash authoring
environment. The XMLConnector component has properties, methods, and events, but it
has no visual appearance at runtime.
Using the XMLConnector component
(Flash Professional only)
The XMLConnector component provides your application with access to any external data
source that returns or receives XML through HTTP. The easiest way to connect with an
external XML data source and use the parameters and results of that data source for your
application is to specify a schema, the structure of the XML document that identifies the data
elements in the document to which you can bind.
For more information on working with the XMLConnector component, see “Connecting to
XML data with the XMLConnector component (Flash Professional only)” in Using Flash.
XMLConnector parameters
You can set the following authoring parameters for each XMLConnector component instance
in the Parameters tab of the Component inspector:
URL is a string that points to an external XML data source.
direction is a string that defines what HTTP operation to perform when the
XMLConnector.trigger() method is called. This parameter can have the value "send",
"receive", or "send/receive".