Flash CS3 Documentation |
|||
| ActionScript 2.0 Components Language Reference > DataSet component > DataSet.isEmpty() | |||
Flash Player 7.
Flash MX Professional 2004.
dataSetInstance.isEmpty()
A Boolean value.
Method; returns true if the specified DataSet object doesn't contain any items (that is, if dataSet.length == 0).
The following code disables a Delete Record button (not shown) if the DataSet object it applies to is empty:
if (my_ds.isEmpty()) {
delete_button.enabled = false;
}
Flash CS3