424
Data Integration (Flash Professional Only)
Array of objects returned from an XMLConnector component
The
following
illustration
shows an example of using the Component inspector to bind an array of XML nodes,
represented with the XMLConnector component. It assumes that you have imported a
schema for an XML file that contains an array of XML nodes. The illustration on the left
shows the schema of the XML document, the array of XML nodes represented as an
ActionScript array. The illustration on the right shows how the
results.datapacket.row
array is bound to the
dataProvider
property of the
myDataset
instance of the DataSet
component.
Accessing the data
After the data is loaded into the DataSet component and the schema for the DataSet
component has been defined, the data can be accessed. You can access data at runtime or at
design time.
Runtime example.
Accessing the data at runtime is simple. Because the data is loaded as
objects, data is exposed through properties that can be referenced in code. The DataSet
component has a method (
DataSet.first
) that lets you make the first item in the array the
currently selected object.
Summary of Contents for FLASH 8-FLASH
Page 1: ...Using Flash ...
Page 12: ...12 Contents ...
Page 110: ...110 Using Symbols Instances and Library Assets ...
Page 128: ...128 Working with Color Strokes and Fills ...
Page 156: ...156 Drawing ...
Page 190: ...190 Working with Text ...
Page 224: ...224 Working with Graphic Objects ...
Page 270: ...270 Creating Motion ...
Page 310: ...310 Working with Video ...
Page 362: ...362 Working with Screens Flash Professional Only ...
Page 386: ...386 Creating Multilanguage Text ...
Page 454: ...454 Data Integration Flash Professional Only ...
Page 500: ...500 Publishing ...
Page 534: ...534 Creating Accessible Content ...