# Dataset problems

**URL:** <https://forum.kirupa.com/t/dataset-problems/179844>\
**Category:** flash\
**Created:** [February 23, 2006, 11:35am UTC](https://forum.kirupa.com/t/dataset-problems/179844 "2006-02-23T11:35:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![offshore](https://avatars.discourse-cdn.com/v4/letter/o/a88e57/32.png) [@offshore](https://forum.kirupa.com/u/offshore)\
**Post date:** [February 23, 2006, 11:35am UTC](https://forum.kirupa.com/t/dataset-problems/179844/1 "2006-02-23T11:35:08Z")

</div>

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

```auto

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 🙂
