Hi Robert,To be honest, I have tried to loop the graphicProvider a while back and it didn't work so I went in a different direction, so I don't really have code to illustrate it but I can try to reproduce it again. To answer your question, I am not using reverse looping even though I have seen an example of that somewhere while googling for answer.This is the new direction I was looking at but that is not working also. Not sure how to approach this. From you reply it sounds like I need to explore more the reverse looping idea... Here what I have so far, warning it rough and not working.
protected function nameList_changeHandler(event:IndexChangeEvent):void
{
if(nameList.selectedIndex >= 0)
{
for(var i:int = 0; i < nameList.dataProvider.length; i++)
{
var o:Object = nameList.dataProvider.getItemAt(i);
//trace(o.lastName);
if (o.lastName==nameList.selectedItem.lastName)
{
var myGraphicPoint:Graphic = new Graphic(new MapPoint(o.X, o.Y, new SpatialReference(3857)));
myGraphicPoint.symbol = BluDiamont;
addressGL_Select.add(myGraphicPoint)
}
else
{
myGraphicPoint.symbol = sms1;
}
//nameList.dataProvider=null;
}
}
}
Thanks a bunch for helping...