Solved! Go to Solution.
Yup, I am using SDK 4.6.0.
Hi there, I was hoping someone could help me figure out what I am missing. I am trying out my first install of flex viewer 3.3, with flex api 3.1. When I try to run my index.mxml file, I get bunch of error messages like :
1046: Type was not found or was not a compile-time constant: UniqueValueRenderer. RendererParser.as /arcgis-viewer-flex/src/com/esri/viewer/utils line 74 Flex Problem
1046: Type was not found or was not a compile-time constant: VETiledLayer. ConfigManager.as /arcgis-viewer-flex/src/com/esri/viewer/managers line 1201 Flex Problem
1119: Access of possibly undefined property exportColumnDelimiter through a reference with static type com.esri.ags.components:AttributeTable. AttributeTableWidget.mxml /arcgis-viewer-flex/src/widgets/AttributeTable line 933 Flex Problem
1120: Access of undefined property CalendarField. AttributeTableWidget.mxml /arcgis-viewer-flex/src/widgets/AttributeTable line 883 Flex Problem
etc
It sounds like I am missing some library files. Strange thing is I had the file running with flex api 3.3 but our client uses api 3.1 so I changed the flex api, but now when I revert back to flex api 3.3 I still get these errors. If you could provide me any suggestions as to how to resolve these issues, I would appreciate it a lot.
Regards,
Deewen
Yes I tried the clean build, but it didn't help. I must say I am bit scared to use clean build - I have had this happen to me multiple times where after I do a clean build, it says the index.html file is missing in the build path, its probably due to some error that the files were not getting compiled though!
Have you done a lot of customizations yet? It would probably be easiest to just create a new Project.
Same story with flex viewer 3.2. I got fewer errors(58 as opposed to 72), and it ends with launch failed alert box saying "file not found:/D:/.../bin-debug/index.html"
I did Build and then run the project but same issue!
These are the steps that I followed:
1) downloaded arcgis-viewer-flex-3.2-src.zip(uncompiled source code) file
2) loaded that up in FB 4.6
3) added agslib-3.1-2012-12-12.swc in my lib folder
4) ran the index.mxml file(tried build too)
This is the subset of errors I get:
1046: Type was not found or was not a compile-time constant: UniqueValueRenderer. RendererParser.as /FlexViewer3.2/src/com/esri/viewer/utils line 74 Flex Problem
1046: Type was not found or was not a compile-time constant: VETiledLayer. ConfigManager.as /FlexViewer3.2/src/com/esri/viewer/managers line 1201 Flex Problem
1046: Type was not found or was not a compile-time constant: VETiledLayer. OverviewMapComponent.mxml /FlexViewer3.2/src/widgets/OverviewMap line 273 Flex Problem
1119: Access of possibly undefined property showInLegend through a reference with static type com.esri.ags.layers:ArcGISDynamicMapServiceLayer. ConfigManager.as /FlexViewer3.2/src/com/esri/viewer/managers line 1054 Flex Problem
1119: Access of possibly undefined property showInLegend through a reference with static type com.esri.ags.layers:ArcGISDynamicMapServiceLayer. ConfigManager.as /FlexViewer3.2/src/com/esri/viewer/managers line 1057 Flex Problem
1120: Access of undefined property VETiledLayer. ConfigManager.as /FlexViewer3.2/src/com/esri/viewer/managers line 1199 Flex Problem
1180: Call to a possibly undefined method UniqueValueRenderer. RendererParser.as /FlexViewer3.2/src/com/esri/viewer/utils line 74 Flex Problem
.......
Are you using Flex SDK 4.6?
Project-Properties-Flex Compiler
Yup, I am using SDK 4.6.0.
Wait, why did you use 3.1 API with 3.2 Viewer?
The Viewer and API version need to match.