MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 318

Using components
Hide thumbs Also See for FLASH MX 2004-USING COMPONENTS:
Table of Contents

Advertisement

Usage
dataSet.enableEvents()
Returns
Nothing.
Description
Method; reenables events for the DataSet objects after events have been disabled by a call to
DataSet.disableEvents()
method must be called an equal or greater number of times than
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
DataSet.filterFunc
318
Chapter 6: Components Dictionary
. To reenable events for the DataSet object, the
.When this property is
is called for each item in the collection.
disableEvents()
, the filter function specified by
true
enableEvents()
was called.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx

Table of Contents