jeudi 2 février 2017

How can I resolve "Access of undefined property JSON?"

This should be simple, but google has failed me (more likely I didn't ask it nicely).

Using Flexbuilder 3, I just added code to do some JSON stuff. When I compile/debug from flexbuilder everything works wonderful. When I try to compile using MXMLC I get the error "Access of undefined property JSON."

Some details;

In flexbuilder I am using SDK - Flex 3.5.

The compile command line is; mxmlc -load-externs=report.xml -warnings=false myModule.mxml

The import in the module is; import com.adobe.serialization.json.JSON;

I suspect it is a library I need to include on the command line, but it eludes me.

Aucun commentaire:

Enregistrer un commentaire