Description
Event; generated immediately after the current iterator has scrolled to a new item in
the collection.
The event object (
The DataSet object that generated the event.
target
The string
type
A number that specifies how many items the iterator scrolled; positive values indicate
scrolled
that the iterator moved forward in the collection; negative values indicate that it moved backward
in the collection.
Example
In this example, the status bar of an application (not shown) is updated when the position of the
current iterator changes.
on(iteratorScrolled) {
var dataSet:mx.data.components.DataSet = eventObj.target;
var statusBarText = dataSet.fullname+" Acct #:
"+dataSet.getField("acctnum").getAsString();
setStatusBar(statusBarText);
}
DataSet.last()
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
dataSet.last()
Returns
Nothing.
Description
Method; makes the last item in the current view of the collection the current item.
Example
The following code, attached to a Button component, goes to the last item in the
DataSet collection.
function goLast(eventObj:obj) {
inventoryData.last();
}
goLast_btn.addEventListener("click", goLast);
330
Chapter 6: Components Dictionary
) contains the following properties:
eventObj
"iteratorScrolled"
.
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?