Here's the issue I'm having. I am entering some info into a dataprovider based on some radio buttons.

When I trace the contents of the dataprovider, everything shows up fine (3 items with the values I want to show). However when I try to add the contents of the dataprovider into a textbox, it only shows the last item.

There is a bunch of code in the project, so I just copied out what is being used for this part.

I don't have much experience with dataproviders, so if anyone can point me in the right direction it would be much appreciated.


var dpataProvider = new DataProvider();
dp.addItem(event.currentTarget.value+" "+event.currentTarget.label);

mysubmit.addEventListener(MouseEvent.CLICK, sendForm);
function sendForm(evt:MouseEvent):void {
trace(dp.toArray());
testbox.text=dp.toArray();

}