Hey Guys,

I'm creating a interactive 'thing' where I've got buttons which when clicked show a an image and display text relating to the value in the XML file.

The XML is working and I can trace the any percentage(value I'm looking to find).

Code:
function LoadXML(e:Event):void 
{
	
	xmlData = new XML(e.target.data);
	
	DrinkList(xmlData);
	
}

function DrinkList(DrinkInput:XML):void 
{
	trace("XML Output");
	
	trace("------------------------");
	
	//trace(DrinkInput.Vodka[0].Pecentage)

}
The code below is what I'm using to display the text taken from the XML file.

Code:
ValueTextField.x = 400; //Positions text.
	ValueTextField.y = 200;
	ValueTextField.autoSize = TextFieldAutoSize.LEFT;  //This is here so that the text box doesn't cause half or more of the text not to be seen.
	ValueTextField.defaultTextFormat = MyTextFormat; //Sets the text to be formatted to the chosen format.
	ValueTextField.text = DrinkInput.Vodka[0].Percentage;
	addChild(ValueTextField); //Adds text to  scene.
The error: Access of undefined property DrinkInput;