RE: [flexcoders] problem with arrays

2005-11-23 Thread Andora, Greg
Title: problem with arrays It looks like you arejust putting a reference to temp_arr instead of it actually creating a new array for the new value in testArray. testArray.addItemAt(num, temp_arr); What you probably want to do is this instead is use concat() to create a duplicate of

RE: [flexcoders] problem with arrays

2005-11-23 Thread Merrill, Jason
Title: problem with arrays Doing this: testArray[0] within the loop will always insert the value in the 0 slot of the array, so your loop is pointless. Use the num variable to increase the array postion targeted. Also, addItem is not necessary. To get the expected results, do this:

RE: [flexcoders] problem with arrays

2005-11-23 Thread Carson Hager
Title: problem with arrays temp_arr is a pointer so all you're doing is assigning the same pointer to every index in testArray and simply incrementing the values with each iteration of the first look. Try declaring temp_arr within the loop. Carson

RE: [flexcoders] problem with arrays

2005-11-23 Thread Tracy Spratt
. Tracy From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Merrill, Jason Sent: Wednesday, November 23, 2005 4:25 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] problem with arrays Doing this: testArray[0] within the loop will always

RE: [flexcoders] problem with arrays

2005-11-23 Thread Merrill, Jason
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tracy Spratt Sent: Wednesday, November 23, 2005 5:41 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] problem with arrays But if your array is a dataProvider and you WANT to update the control