MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 337

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

Advertisement

Returns
Nothing.
Description
Method; makes the previous item in the current view of the collection the current item. Which
items are in the current view depends on any current filter and range settings.
This example loops over all the items in the current view of the collection, starting from the last
item, and performs a calculation on a field in each item.
myDataSet.last();
while(myDataSet.hasPrevious()) {
var price = myDataSet.price;
price = price * 0.5; // Everything's 50% off!
myDataSet.price = price;
myDataSet.previous();
}
See also
DataSet.first()
DataSet.properties
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
dataSet.properties
Description
Property (read-only); returns an object that contains all of the exposed properties (fields) for any
transfer object within this collection.
Example
This example displays all the names of the properties in the DataSet object named
for(var i in myDataSet.properties) {
trace("field '"+i+ "' has value "+ myDataSet.properties[i]);
}
DataSet.readOnly
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
,
DataSet.hasNext()
DataSet component (Flash Professional only)
.
myDataSet
337

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?

This manual is also suitable for:

Flash mx

Table of Contents