MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 328

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

Advertisement

DataSet.isEmpty()
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
dataSet.isEmpty()
Returns
A Boolean value.
Description
Method; returns
dataSet.length
Example
The following code disables a Delete Record button (not shown) if the DataSet object it applies
to is empty.
if(userData.isEmpty()){
delete_btn.enabled = false;
}
See also
DataSet.length
DataSet.items
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
myDataSet.items
Description
Property; an array of items managed by
Example
This example assigns an array of objects to a DataSet object's
var recData = [{id:0, firstName:"Mick", lastName:"Jones"},
myDataSet.items = recData;
328
Chapter 6: Components Dictionary
if the specified DataSet object doesn't contain any items (that is, if
true
== 0).
{id:1, firstName:"Joe", lastName:"Strummer"},
{id:2, firstName:"Paul", lastName:"Simonon"}];
.
myDataSet
items
property.

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