MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 313

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

Advertisement

Description
Method; returns
have not yet been sent in a delta packet; otherwise, returns
Example
The following code enables a Save Changes button (not shown) if the DataSet collection, or any
items with that collection, have had modifications made to them that haven't been committed to
a delta packet.
if(data_ds.changesPending()) {
saveChanges_btn.enabled = true;
}
DataSet.clear()
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
dataSet.clear()
Returns
Nothing.
Description
Method; removes the items in the current view of the collection. Which items are considered
"viewable" depends on any current filter and range settings on the current iterator. Therefore,
calling this method might not clear all of the items in the collection. To clear all of the items in
the collection regardless of the current iterator's view, use
If
DataSet.logChanges
to
DataSet.deltaPacket
Example
This example removes all items from the current view of the DataSet collection. Because the
property is set to
logChanges
myDataSet.logChanges= true;
myDataSet.clear();
See also
DataSet.deltaPacket
if the collection, or any item in the collection, has changes pending that
true
is set to
true
for all items in the collection.
, the removal of those items is logged.
true
,
DataSet.logChanges
false
DataSet.removeAll()
when you invoke this method, "remove" entries are added
DataSet component (Flash Professional only)
.
.
313

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