tI have a file create with Flash Builder and the Flex 4.1 SDK which compiles fine in Flash Builder 4.5.1 but fails to compile with the command-line MXMLC (run via SublimeText 2 build system file). It doesn't like this line:
var dataString:String = JSON.encode(packagedData);
with the error
Error: Access of undefined property JSON.
I realize what the error means, but why does in work inside Builder but not in the command line? Is there a library I need to include if I'm building it this way?