User Guide

DataSet component (Flash Professional only) 345
Example
This example calls saveToSharedObj() in a try..catch block and displays an error if there is a
problem saving the data to the shared object.
try {
myDataSet.saveToSharedObj("webapp/customerInfo");
}
catch(e:DataSetError) {
trace("Unable to create shared object”);
}
See also
DataSet.loadFromSharedObj()
DataSet.schema
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
dataSet.schema
Description
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.