ReferenceError: Error # 1065: JSON variable not defined

I'm going to explode, trying to figure out how to fix this before I do it, maybe you could help me? I am developing a game under flash player 11 in Flash Builder 4.5.1.21328, and I wanted to play with new material, for example, with JSON support, but when I try to run the application in Flash Builder, I get the following:

ReferenceError: Error #1065: Variable JSON is not defined.

I added a compiler argument: -swf-version = 13, I downloaded flash player 11 playerglobal.swc and put it where it should be in the flash linker directory, so I'm stuck now .. How to fix this unpleasant thing and enable flash player 11 in the flash builder?

When I use the Create HTML Wrapper File option for my project and run the application in a browser, it runs smoothly.

+4
source share
3 answers

I also had this problem, and I spent many hours trying to figure it out until I found a solution that works for me. I explained this here in this post in the Adobe forums: http://forums.adobe.com/message/3954031

Hope this helps. Please let me know if this works for you too.


EDIT: It seems the Adobe Forums is working now, so I'm posting my answer here:


Well, after much rework, I think that finally I found a way to finally make it work!

I created some modified XML files with profiles required for AIR 3.0 and after many attempts it finally works!

I downloaded them here: http://www.mediafire.com/?d5e761frl5px4

, AIR 3.0:

  • "c:\Program Files (x86)\Adobe\Adobe Flash CS5.5\Common\Configuration\Players"

  • , AIR 3.0 SDK "c:\Program Files (x86)\Adobe\Adobe Flash CS5.5\AIR3.0" "AIR2.6", " AIR SDK" (http://kb2.adobe.com/cps/908/cpsid_90810.html). . . XML "AIR3.0".

  • "c:\Program Files (x86)\Adobe\Adobe Flash CS5.5\Common\Configuration\ActionScript 3.0" "AIR3.0". "airglobal.swc", "c:\Program Files (x86)\Adobe\Adobe Flash CS5.5\AIR3.0\frameworks\libs\air".

  • , "descriptor-sample.xml" "c:\Program Files (x86)\Adobe\Adobe Flash CS5.5\AIR2.6\samples" , xmlns "http://ns.adobe.com/air/application/3.0"

, AIR2.6, SDK AIR3.0. - , Adobe Flash. DLL, . .

, AIR SDK , ! , Adobe AIR , , , - . ( ), , !

Adobe SDK, !

, , XML - .


EDIT 2: , XML iOS . iOS_AIR3_0.xml, URL- MediaFire, ( , , ).

XML , < > "AIR for iOS" ( "AIR 3.0 iOS", ). , Adobe Flash CS5.5 . "AIR for iOS" , Flash iOS " AIR iOS", - , "AIR for iOS" , AIR. , 2 iOS (2.7 3.0), "AiriPhone.xml" , XML AIR 3.0 iOS.

, , ? ? Flash CS5.5, , , .

, AIR SDK DLL, Flash Pro CS5.5 AIR , , ... ?

+3

:

-swf-version=13
+3

, , , flash- , , Flash- ( - 10.2 )

For example, I ran similar code in flash development and constantly raised this annoying error, and was because I used fp 10.2 and was aimed at fp 11.1

+1
source

All Articles