MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 326

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

Advertisement

Edition
Flash MX Professional 2004.
Usage
dataSet.hasNext()
Returns
A Boolean value.
Description
Method; returns
returns
.
true
Example
This example iterates over all of the items in the current view of the collection (starting at its
beginning) and performs a calculation on the
myDataSet.first();
while(myDataSet.hasNext()) {
var price = myDataSet.currentItem.price;
price = price * 0.5; // Everything's 50% off!
myDataSet.currentItem.price = price;
myDataSet.next();
}
See also
DataSet.currentItem
DataSet.hasPrevious()
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
dataSet.hasPrevious()
Returns
A Boolean value.
Description
Method; returns
otherwise, returns
Example
This example iterates over all of the items in the current view of the collection (starting from the
its last item) and performs a calculation on the
326
Chapter 6: Components Dictionary
if the current iterator is at the end of its view of the collection; otherwise,
false
,
DataSet.first()
if the current iterator is at the beginning of its view of the collection;
false
.
true
property of each item.
price
,
DataSet.next()
property of each item.
price

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

This manual is also suitable for:

Flash mx

Table of Contents