ReferenceError:错误#1065:变量JSON未定义 [英] ReferenceError: Error #1065: Variable JSON is not defined

查看:2071
本文介绍了ReferenceError:错误#1065:变量JSON未定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我即将爆发试图找出如何解决这个问题之前,我这样做也许你可以帮助我?我正在使用Flash Builder 4.5.1.21328中的flash player 11开发一个游戏,我想玩弄新东西,例如原生的JSON支持,但是当我尝试在Flash Builder中启动应用程序时,我得到:

  ReferenceError:错误#1065:变量JSON未定义。 

我已经添加了编译参数:-swf-version = 13,我已经下载了flash player 11 playerglobal.swc并放在应该是在Flash Builder的目录,所以我卡住了现在..如何解决这个恼人的事情,并启用闪光灯生成器Flash Player 11?

当我为我的项目使用'生成HTML包装文件'选项并在浏览器中运行应用程序时,它运行顺利。 设置一个编译器运行时选项:

  -swf-version = 13 


I'm about to explode trying to figure out how to fix this so before I do so maybe you could help me? I'm developing an game under flash player 11 in flash builder 4.5.1.21328 and I wanted to play around with the new stuff, for example, the native JSON support, but when I try to launch the application in Flash Builder I get this:

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

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

When I use the 'Generate HTML wrapper file' option for my project and run the application in browser, it runs smoothly.

解决方案

Set a compiler runtime option:

-swf-version=13

这篇关于ReferenceError:错误#1065:变量JSON未定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆