MACROMEDIA FLASH MX 2004-USING FLASH Use Manual page 278

Hide thumbs Also See for FLASH MX 2004-USING FLASH:
Table of Contents

Advertisement

In the Open File dialog box, select the file that you want to use as a sample, and click Open.
6.
The schema appears in the Schema tab. You can now create bindings between elements of your
XML document and other component properties within your application.
Note: Some XML documents may have a structure that Flash MX cannot represent; for example,
elements that contain text and child elements mixed together.
The following illustration shows the schema for a file named Animals.xml:
The schema tab displays a schematic representation of the structure of the XML file. It says that
the
property of the XMLConnector component is an XML object. The root element of
results
that object is called Inventory, which contains the elements Vendor, Categories, and so on. The
Vendor element contains a single element called Name, which is a string. The Categories field
contains an element called Birds, which contains the attribute
contains an array of objects called Bird. Each of these objects has two attributes:
also contains a single element named key, which contains the attribute
array is represented by the
The String and Integer fields can be bound to UI components. The Array field Bird can be bound
to a DataSet component or to list-based UI components such as List, DataGrid, or ComboBox,
which all use the data provider interface. Or, you can directly bind UI components to fields
within certain records of the array, as shown in the example application in
binding" on page
278
Chapter 14: Data Integration (Flash Professional Only)
field.
[n]
270.
. The Birds element also
labelname
name
. The index for the Bird
id
"Creating an indexed
and
. It
url

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents