Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I am trying to run Map ServerLayer sample given on arcgis resource center.When I pasted the code in my FlashBuilder 4.6 then it is showing error on this line <esri:ClassBreaksRenderer attribute="POP2000"> .
Error is

Multiple markers at this line:
-Cannot resolve attribute 'attribute' for component type com.esri.ags.renderers.ClassBreaksRenderer.
-ClassBreaksRenderer
-1 changed line

It means it is not recognizing the attribute field of esri:ClassBreaksRenderer. I am unable to understand the reason?Any suggestions?

Note: I am using flex4.6.0 and latest version of arcgis API which is agslib-3.3-2013-04-24.swc

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

"The attribute, attribute2, attribute3, and attributeDelimiter properties that were deprecated at 2.5 have been removed at 3.0. Use field, field2, field3, and fieldDelimiter instead."

From the What's New document at http://resources.arcgis.com/en/help/flex-api/concepts/index.html#//017p0000000w000000

Note that your link goes to the 2.x API documentation. If you are using the 3.x API, you should be looking at the 3.x pages: http://links.esri.com/flex always points to the latest version.

share|improve this answer
    
Its very bad that I can't give you up vote :( Anyway Awesome man awesome :) –  Despicable Jun 13 '13 at 3:48
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.