문제

My flex4.6 works normally in debug. But when I create a release version, I got:

TypeError: Error #1009: Cannot access a property or method of a null object reference.

at com.adobe.serializers.utility::TypeUtility$/getArrayType() at com.adobe.serializers.json::JSONDecoder/parseObject() at com.adobe.serializers.json::JSONDecoder/parseValue() at com.adobe.serializers.json::JSONDecoder/decode() at com.bravolucy.football.utilities::Utilities$/getAsObj()

looks like:

http://forums.adobe.com/message/4250338

Original project was done in flex4.0 and it uses some swc libraries.

도움이 되었습니까?

해결책

The answer of your question is in your question itself

"Original project was done in flex4.0 and it uses some swc libraries"

before this para it was said

flex4.6 works normally in debug

It should be working fine with 4.6 because with this version playerglobal.version 11.1 being used normally which has JSON lib included with it but prior version to playerglobal - 11 you need to include "as3corelib.swc" in your project libs.

More details you can find at - http://blog.infrared5.com/2011/07/working-with-native-json-in-flash-player-11/

Thanks,

Varun

다른 팁

You need to add and tick as3corelib.swc in project properties.

But even better would be to switch to native JSON.parse

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top