while you can trace arrays and see all the data (providing they are not objects) I wonder how the like: testbox.text = dp.toArray(); even worked... because it threw an error that the value being assigned to testbox.text wasn't a string.
A few simple ways to convert an array to a string:
Code:
testbox.text = dp.toArray().toString(); // will output with commas seperating the values
Code:
testbox.text = dp.toArray().join('~~'); // will output one string with the dilimeter in the join param
and other ways as well, like going though each value and appending it to a string for example.
the code I tested with:
PHP Code:
var arr:Array = ['hi', 'hello', 'sup'];
trace(arr); // hi,hellow,sup
textbox.text = arr; // throws error
textbox.text = arr.toString(); // outputs the same as the trace
textbox.text = arr.join('.-*-.') // outputs with goofy delimiter