MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 336

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

Advertisement

employee.name = "newGuy";
// property data happens to be XML
employee.zip =
employee.getPropertyData().firstChild.childNodes[1].attributes.zip;
}
employees_ds.addEventListener("newItem", newItemEvent);
DataSet.next()
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
dataSet.next()
Returns
Nothing.
Description
Method; makes the next 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.
Example
This example loops over all the items in a DataSet object, starting from the first item, and
performs a calculation on a field in each item.
myDataSet.first();
while(myDataSet.hasNext()) {
var price = myDataSet.price;
price = price * 0.5; // Everything's 50% off!
myDataSet.price = price;
myDataSet.next();
}
See also
DataSet.first()
DataSet.previous()
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
dataSet.previous()
336
Chapter 6: Components Dictionary
,
DataSet.hasNext()

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?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx

Table of Contents