User Guide

346 Components Dictionary
DataSet.afterLoaded
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
Usage 1:
var listenerObject:Object = new Object();
listenerObject.afterLoaded = function (eventObj:Object):Void {
// ...
};
dataSetInstance.addEventListener("afterLoaded", listenerObject);
Usage 2:
on (afterLoaded) {
// ...
}
Description
Event; broadcast immediately after the DataSet.items property has been assigned.
The event object (
eventObj) contains the following properties:
target The DataSet object that generated the event.
type The string "afterLoaded".
Example
In the following example, a form named contactForm (not shown) is made visible once the
items in the data set
contact_ds have been assigned.
contact_ds.addEventListener("afterLoaded", loadListener);
var loadListener:Object = new Object();
loadListener.afterLoaded = function (evt_obj:Object) {
if (evt_obj.target == "contact_ds") {
contactForm.visible = true;
}
};