Type 1120: Access of undefined property JSON 无法明确解析多名称引用 JSON

http://blog.donews.com/cnsoft/archive/2012/05/03/1582972.aspx

Type 1120: Access of undefined property JSON
无法明确解析多名称引用 JSON

https://github.com/mikechambers/as3corelib/issues/171

If you’re using as3corelib like I’ve been using for quite some time now, you will notice this error. To fix it you simply need to remove the following import (it may vary based on your project structure):

import com.adobe.serialization.json.JSON;

and then you’ll need to modify your code to replace:

JSON.decode(myString);
and
JSON.encode(myObject);

to:

JSON.parse(myString);
and
JSON.stringify(myObject);

You can find the full details of the new implementation of the native JSON support in AS3 on Adobe’s Reference Site

解决办法是移除那个 import 然后把对应的函数名改掉.

转载于:https://www.cnblogs.com/Null2051/archive/2012/09/27/2704970.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值