User Guide
DataSet component (Flash Professional only) 331
See also
DataSet.first()
DataSet.length
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
dataSet.length
Description
Property (read-only); specifies the number of items in the current view of the collection. The
viewable number of items is based on the current filter and range settings.
Example
The following example alerts users if they haven’t made enough entries in the data set, perhaps
using an editable DataGrid component.
if(myDataSet.length < MIN_REQUIRED) {
alert("You need at least "+MIN_REQUIRED);
}
DataSet.loadFromSharedObj()
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
dataSet.loadFromSharedObj(objName, [localPath])
Parameters
objName
A string specifying the name of the shared object to retrieve. The name can include
forward slashes (for example, “work/addresses”). Spaces and the following characters are not
allowed in the specified name:
~ % & \ ; : " ' , < > ? #
localPath An optional string parameter that specifies the full or partial path to the SWF file
that created the shared object. This string is used to determine where the object is stored on the
user’s computer. The default value is the SWF file’s full path.