Flash CS3 Documentation |
|||
| ActionScript 2.0 Components Language Reference > DataSet component > DataSet.schema | |||
Flash Player 7.
Flash MX Professional 2004.
dataSetInstance.schema
Property; provides the XML representation of the schema for this DataSet object. The XML assigned to this property must have the following format:
<?xml version="1.0"?>
<properties>
<property name="propertyName">
<type name="dataType" />
<encoder name="dataType">
<options>
<dataFormat>format options</dataFormat>
</options>
</encoder>
<kind name="dataKind">
</kind>
</property>
<property> ... </property>
...
</properties>
A DataSetError exception is thrown if the XML specified does not follow the above format.
The following example sets the schema of the data set my_ds to a new XML object containing appropriately formatted XML:
my_ds.schema = new XML("<properties><property name="billable"> ..etc.. </properties>");
Flash CS3