Dataset problems

Hi there. Need some help, I’m a part time coder!

Senario is:

xml connecter + Dataset + listbox.

I am able to get the length of the dataset, but I am unble to access the actual data for an individual item in the dataset.

I’m using this


listener = new Object();
listener.modelChanged = function(evt){
    trace("LENGTH: " + evt.target.getLength());
    trace(evt.target.items[2].data);  // This prints undefined for label and data
}
myDataSet.addEventListener("modelChanged", listener)

The xml connector is bound to the dataset and the dataset is bound to listbox.

Any help much appreciated :slight_smile: