I'm working on a project using actionscript and Flex. For some reason I have a problem importing the com.adobe.serialization.json.JSON class. When I'm working only with the FlexSDK files and try to use it I'm getting the following error:
Error:(142, 70) [..]: Error code: 1120: Access of undefined property JSON.
And of course IntelliJ marks this file and the import in red.
On the other hand when I import the corelib.swc that includes this file I get the following error:
Error:[..]: Can not resolve a multiname reference unambiguously. JSON (from /Volumes/backup/FlexSDK/frameworks/libs/air/airglobal.swc(JSON, Walker)) and com.adobe.serialization.json:JSON (from /Volumes/backup/.../libs/corelib.swc(com.adobe.serialization.json:JSON)) are available.
What is going on here? How can I solve this?