Well, it appears they both work... But my ItemRenderer (see my other post) is still not working correctly. I had assumed it wasn't working because I was passing it a reference to the array that's used to populate the ComboBox, rather than passing it a new array... But no matter what I do, I can't get the comboBox drop-down to render properly after a scroll...
Very frustrating... --- In flexcoders@yahoogroups.com, Fotis Chatzinikos <fotis.chatzini...@...> wrote: > > ObjectUtil.copy() ? > > On Thu, Feb 4, 2010 at 6:10 PM, claudiu ursica <the_bran...@...>wrote: > > > > > > > Array.splice method (Array.concat or Array.join) check the docs I don;t > > know them by heart. > > C > > > > ------------------------------ > > *From:* Laurence <lmacne...@...> > > *To:* flexcoders@yahoogroups.com > > *Sent:* Thu, February 4, 2010 6:02:46 PM > > *Subject:* [flexcoders] Assigning arrays... > > > > > > > > I need to copy one array to another -- NOT copy a reference to the array... > > > > > > For example: > > array1 = array2 will simply copy a reference to array2 into array1. > > > > I want to do something like this: > > array1 = new Array(array2) . > > > > Of course, that doesn't work... It simply creates a blank array that's > > pre-allocated to be the length of whatever array2's length was... (At least > > that's what I think is going on...) > > > > Anyway -- how do I copy one array to another, without looping through the > > entire array? > > > > > > > > > > > > -- > Fotis Chatzinikos, Ph.D. > Founder, > LivinData Technologies > www.styledropper.com > fotis.chatzini...@..., >