MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference page 365

Components language reference
Table of Contents

Advertisement

The following example populates a DataGrid component from content dynamically loaded
using the XMLConnector component. When a user clicks a CheckBox instance on the Stage,
the contents of the DataSet component are filtered and are updated automatically in the
DataGrid component.
Drag the following components to the Stage, and give them the following instance names:
CheckBox (
editorsChoice_ch
DataGrid (
reviews_dg
DataSet (
reviews_ds
XMLConnector (
Download a copy of the following XML document, and save it to your local hard disk:
www.helpexamples.com/flash/xml/reviews.xml
using the XMLConnector component,. You'll use the local copy to import the XML schema
into the DataSet component. Select the XMLConnector instance on the Stage, and select the
Schema tab from the Component inspector. Select the
Schema From a Sample XML File. Select the XML document that you downloaded to your
local hard disk, and click Open. The schema of the XML document should import into the
DataSet component. With the
the Stage, add a binding from the
property of the
dataProvider
binding to Out in the Bindings tab. Select the
and add another binding for the
selected, select the Bindings tab of the Component inspector. Click the Add Binding button
and add a binding from the
property of the
dataProvider
)
)
)
)
reviews_xmlconn
reviews_xmlconn
reviews_xmlconn.results.reviews.review
reviews_ds
dataProvider
dataProvider
reviews_dg
. This XML document loads dynamically
property, and click Import a
results
XMLConnector instance still selected on
DataSet instance. Set the direction of the data
DataSet instance on the Stage,
reviews_ds
property. With the
property of the DataSet component to the
DataGrid instance.
array to the
instance
reviews_ds
DataSet.filterFunc
363

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents