I referred sample source in ArcGIS Resources Forums how to get attributes from GraphicsLayer.
I'm testing in now, reference source is ....
var drawArea:GraphicsLayer = _map.getLayer("drawGraphicLayer") as GraphicsLayer;
var featureSet3:FeatureSet = new FeatureSet(ArrayCollection(drawArea.graphicProvider).toArray());
//and check name & value in FeatureSet
for (var attributeName:Object in featureSet3.attributes)
{
trace("attribute name: " + attributeName + " : " + featureSet3.attributes[attributeName]);
}
////////// output Example ////////////////
attribute name: 0 : [object Object]
attribute name: 1 : [object Object]
the values of attribute are printed "[object Object]"
I guess first obj is ArrayCollection, and second obj is Array.
I already did cast obj and plus .toString() -> featureSet3.attributes[attributeName].toString()
but this problem not resolved.
What is problem?