Question

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.

Was it helpful?

Solution

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

OTHER TIPS

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

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top