Using ActionScript 2.0 Components |
|
|
|
| Creating an Application with Components > Bind data components to display gift ideas > Use schema to describe the XML data source | |||
When you connect to an external XML data source with the XMLConnector component, you need to specify a schema--a schematic representation which describes the structure of the XML document. The schema tells the XMLConnector component how to read the XML data source. The easiest way to specify a schema is to import a copy of the XML file that you're going to connect to, and use that copy as a schema.
products_xmlcon (XMLConnector) instance beside the Stage.In the top pane of the Schema tab, select the image element. In the bottom pane, select data type and change the value from <empty> to String. Repeat this step for the description element.
|
|
|
|