MACROMEDIA FLASH MX 2004-USING FLASH Use Manual page 301

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

Advertisement

Component
Any component
Any connector
Virtual schemas
When you bind an array of data to a DataSet's
only recognizes fields that are top-level items within each row of the array. It does not recognize
items nested within other objects. A virtual schema lets you change how the underlying data
structure is interpreted when bindings are executed. The new structure is derived using XPath
statements. For more information, see
For example, the schema for Animals.xml file described in
XMLConnector component (Flash Professional only)" on page 277
called Bird. Each object contains two fields (
one field called
id
property) with three fields—
constructed in the following way, for each item in the XML file:
Create an empty item.
Loop through the defined schema properties, extracting the values for each property from
the XML data, and assign these values to the created item. The Name and URL fields will
have values.
Provide this item to the DataSet component.
The ID field does not exist on the item, and the DataSet component has a blank entry for each
item assigned.
Property/field
Settings
Any property or field Kind, Kind Options,
Encoding, Encoding Options
(and its
Path
results
subfields)
"Adding bindings using path expressions" on page
. If you bind the Bird array to a DataSet component (using the
,
, and
name
url
or
items
dataprovider
"Connecting to XML data with the
and
). They also contain a sub-element with
name
url
—each item that is returned from the array is
id
Advanced topics in data integration
When to use
Various purposes, as
described in
"Using kinds
and encoders" on page
To identify the location of the
data for a virtual schema
field.
property, the data set
302.
defines an array of objects
dataProvider
292.
301

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents