Here is the sample for Clustering.http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=FeatureLayerClustering