I am attempting to use the Routing widget in flexviewer 3.0 prerelease and keep having the same errors pop up in the RouteWidget.mxml file. [ATTACH=CONFIG]14973[/ATTACH]
The above image shows what I see in flash builder. The widget will display when the application is built, but when I select a location on the map for geocoding, I get this error
ReferenceError: Error #1065: Variable com.esri.ags.utils::JSON is not defined.
at com.esri.ags.tasks::Locator/locationToAddress()
at widgets.Route::RouteWidget/AddRouteClick()
at com.esri.viewer.managers::MapManager/drawEndHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at com.esri.ags.tools::DrawTool/map_clickFirstHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()
at com.esri.ags::Map/dispatchMapMouseEvent()
at com.esri.ags::Map/mouseUpHandler()
I have been able to take the compiled widget and plug it into flexviewer 2.5 so I believe this to be a change between flex 2.5 and 3.0.
Any insight on this will be much appreciated. Thanks,