Dynamic Legend Error

508
2
04-11-2011 09:07 AM
ScottSnider
New Contributor III
I am new to the programming world so I am trying to utilize as many code samples as I can to get a flex project up and running.  Currently I am trying to add the Dynamic Legend widget to my map, but I get an error that I cannot find an answer for. 

At like 363 I get:
"1046: Type was not found or was not a compile-time constant: LegendDataGroup."

Upon further invesigation it appears that FB thinks legendAC is not an arrayCollection. 

If anyone can provide some input on this matter I would greatly appreicate it!!!

Scott
Tags (2)
0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Scott,

   LegendDataGroup is actually an Action Script file (LegendDataGroup.as). Do you have the widget in a folder named exactly DynamicLegend (i.e. widgets/DynamicLegend)? Flex is a case sensitive language.
0 Kudos
ScottSnider
New Contributor III
Thanks Robert.  I knew it must have been something simple (I also figured if I named this post with your widget that you would see it and reply).  Thank you very much.

If someone reads this because of a similar problem here is what I did wrong: 

When you download this widget use the "DynamicLegend" folder under the "Uncompiled" folder instead of the base "DynamicLegend" which holds both compiled and uncompiled versions.
0 Kudos