XMLConnector component (Flash Professional only)
The XMLConnector component lets you read or write XML documents using HTTP
operations. It acts as a connector between other components and external XML data
POST
sources. The XMLConnector component communicates with 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:
direction
is a string that defines what HTTP operation to perform when
,
send
sendAndLoad
ignoreWhite
is a Boolean value; the default setting is
the text nodes that contain only white space are discarded during the parsing process. Text nodes
with leading or trailing white space are unaffected.
multipleSimultaneousAllowed
operation to initiate when another
simultaneous
trigger()
Also, Flash Player may place limits on the number of simultaneous network operations. This limit
varies by version and platform. When the parameter is set to
cannot initiate if another one is in progress.
suppressInvalidCall
if the data parameters are invalid. When suppressInvalidCall is set to
operation executes and uses invalid data if necessary.
URL
is a string that points to an external XML data source.
894
Chapter 6: Components Dictionary
, or
correspond to
load
is a Boolean value; when set to
trigger()
operations may not be completed in the same order they were called.
is a Boolean value; when set to
Components Dictionary
,
receive
receive/send
. When this parameter is set to
false
true
operation is already in progress. Multiple
false
, it suppresses the
true
CHAPTER 6
GET
is called:
trigger()
, and
, respectively.
send
, it allows a
trigger()
, a
operation
trigger()
operation
trigger()
, the
false
trigger()
or
,
true
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?