Select to view content in your preferred language

JSON property is not defined - JSONUtil.as:65

735
1
Jump to solution
01-02-2013 05:31 AM
jimplouplou
New Contributor
Hello, i have just started a new project with your API.
I try to run this example :

<esri:Map>
<esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/>
</esri:Map>

I have Flex 4.5.1 and agslib-3.1-2012-12-12.swc
I soon as i run my very simple app, i have this error :

ReferenceError: Error #1065: The property JSON is not defined.
at com.esri.ags.utils::JSONUtil$/decode()
at com.esri.ags.tasks::BaseTask/handleResultEvent()
at mx.rpc::AsyncResponder/result()
at mx.rpc::AsyncToken/http://www.adobe.com/2006/flex/mx/internal::applyResult()
at mx.rpc.events::ResultEvent/http://www.adobe.com/2006/flex/mx/internal::callTokenResponders()
at HTTPOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()
at mx.rpc::Responder/result()
at mx.rpc::AsyncRequest/acknowledge()
at DirectHTTPMessageResponder/completeHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()

Do you know what i have to do to resolve this ?
Thanks
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Jim,

   The reason is because if you read the minimum requirements you will find that the 3.x line of the AGS Flex API requires Adobe Flex SDK 4.6 as a minimum.

http://resources.arcgis.com/en/help/flex-api/concepts/index.html#//017p0000000m000000#GUID-6D1447E1-...

Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).
Follow these steps as shown in the below graphic:

View solution in original post

0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus
Jim,

   The reason is because if you read the minimum requirements you will find that the 3.x line of the AGS Flex API requires Adobe Flex SDK 4.6 as a minimum.

http://resources.arcgis.com/en/help/flex-api/concepts/index.html#//017p0000000m000000#GUID-6D1447E1-...

Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).
Follow these steps as shown in the below graphic:

0 Kudos