tags:

views:

2758

answers:

2

I am trying to parse JSON in an Adobe Flex app, using http://www.mikechambers.com/blog/2006/03/28/tutorial-using-json-with-flex-2-and-actionscript-3/'>This Tutorial

Unfortunately, Flex Builder 3 is flagging a "Access of undefined property JSON" error on the line

var arr:Array = (JSON.decode(rawData) as Array);

I don't know what it wants, since I included the import line.

A: 

Check your input file for validity. GI=GO.

I would try including in in a HTML page with Firefox + Firebug and seeing if you get a similar error there.

Diodeus
+6  A: 

You need to download, install, and reference the utility library that contains the JSON routines. See http://labs.macromedia.com/wiki/index.php/ActionScript_3:resources:apis:libraries#corelib

Did you do that, and include it in your project?

le dorfier