XML to Multidimensional Array AS3

Hi there - I’m trying to take an xml feed of country names and then using a multidimensional array, parse those country names to their 3 letter FIFA code and then pass that to a dynamic text field. I’m certain that I need multidimensional array that lists the team name, and then the abbreviation.

These 3 letter codes would then be passed to a dynamic text field, with instance name. “hashtag_mc” -

I already have my xml coming in through URLLoader and parsing and reading in and the two variables that are being pulled from the xml nodes are assigned to “country1” and “country2” -

I need those variables to read which country is being passed from the node, loop through the array, find the 3 letter country code, and then pass the 3 letter abbreviation it to a dynamic text field.

I started something but I need help.


		  var twitterList:Array = new Array();
		  twitterList["Brazil"] = ["BRA"];
		  twitterList["Italy"] = ["ITA"];
		  twitterList["Japan"] = ["JPN"];
		  twitterList["Mexico"] = ["MEX"];

Thanks in advance for any guidance~!