Is there a more elegant way to get the position of an element in an array
than this:

var firstList:Array=[element1,element2,element3];
for var(i=0;i<firstList.length;i++){
  secondArray.push({itemId:i,itemname:firstList[i].name,firstList[i]}
}
my_lb.dataProvider=secondArray;


i'm trying to basically move the items from one list to the other list but
wanted to use a model for the second list instead of adding stuff right to
it.

For example - I know there's an iterator Interface in Flash but is there a
class that would have already written iteration code (in AS2).
I've tried the dataSet but  have am looking for something less heavy.



Thanks,

Mani
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to