User Guide

338 Chapter 6: Components Dictionary
Usage
dataSet.readOnly
Description
Property; a Boolean value that specifies whether this collection can be modified (false) or is
read-only (
true). Setting this property to true prevents updates to the collection. The default
value is
false.
You can also set this property in the Property inspector.
Example
The following example makes the DataSet object named myDataSet read-only, and then attempts
to change the value of a property that belongs to the current item in the collection. This will
throw an exception.
myDataSet.readOnly = true;
// This will throw an exception
myDataSet.currentItem.price = 15;
See also
DataSet.currentItem
DataSet.removeAll()
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
dataSet.removeAll()
Parameters
None.
Returns
Nothing.
Description
Method; removes all items in the DataSet collection.
Example
This example removes all the items in the DataSet collection contact_ds:
contact_ds.removeAll();