Basically I need to create an ArrayCollection composed of one field in a featureSet of a result function.I complicated this task (code below) in order to help see what I was trying to get by creating a dataProvider for a list, e.g. LLdata.dataProvider = featureSet.attributes; The labelField of the list is 'Stop_ID'. The list works as expected. But, I need to create an arrayCollection composed of that field (Stop_ID) for another purpose (I don't need the list). I'm sure that I am missing something simple. Any help or pointer will be greatly appreciated. The code that I am using may not be necessary to answer this, but I am including it if it might clarify.function onRbeResult(featureSet:FeatureSet, token:Object = null):void
{
try
{
for each (var gra:Graphic in featureSet.features)
{
var obj:Object = gra.attributes;
obj["gid"] = gid;
gid +=1;
}
gridDataProvider = featureSet.attributes;
LLdata.dataProvider = featureSet.attributes;
// createRbeRecordData(featureSet,rbeID);//original
var recAC:ArrayCollection = createRbeRecordData(featureSet,rbeID);
wRepeater.dataProvider = recAC;
var stopAC:ArrayCollection = LLdata.dataProvider as ArrayCollection;
for each( var obj:Object in stopAC )
{
for each( var obj2:Object in obj )
{
myString += String( obj2 );
}
}
Alert.show(myString);
Thanks,Jim Faron