However, for the life of me, I cannot get Flex to correctly parse the JSON code into an array. In the line:
var countries:Array = (JSON.decode(rawData) as Array);
The countries array never gets populated with any of the data from the JSON file, even though I the contents of the rawData variable correctly contain all the JSON code. The countries array always remains empty.
Help me Obi-wan, you're our only hope!! I have been working on this problem for the past two days and have yet to figure out what is wrong.
What am I doing wrong? Can someone point me in the right direction? Is there a problem with the JSON code structure? Is there something remarkably stupid I am overlooking? Hope someone can help look at this with a fresh pair of eyes and see if they can spot the problem, because I have really hit a wall here and don't know what else to do but to post on the forums for help!!