User Guide
318 Chapter 6: Components Dictionary
Usage
dataSet.enableEvents()
Returns
Nothing.
Description
Method; reenables events for the DataSet objects after events have been disabled by a call to
DataSet.disableEvents(). To reenable events for the DataSet object, the enableEvents()
method must be called an equal or greater number of times than
disableEvents() was called.
Example
In this example, events are disabled before changes are made to items in the collection, so the
DataSet object won’t try to refresh controls and impact performance.
// Disable events for the data set
myDataSet.disableEvents();
myDataSet.last();
while(myDataSet.hasPrevious()) {
var price = myDataSet.price;
price = price * 0.5; // Everything's 50% off!
myDataSet.price = price;
myDataSet.previous();
}
// Tell the dataset it's time to update the controls now
myDataSet.enableEvents();
See also
DataSet.disableEvents()
DataSet.filtered
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
dataSet.filtered
Description
Property; a Boolean value that indicates whether the data in the current iterator is filtered. The
default value is
false.When this property is true, the filter function specified by
DataSet.filterFunc is called for each item in the collection.