Assign text to text box

I have attached a file to show what I now going to try to explain.

in may main timeline i am loading a text file - this is fine
my button when rolled over is loading and xml file - this is fine
when the button is rolled over it accesses the attributes of the xml - this is fine
when the button is rolled over it should display some text - this is not working

The text it should display is from the text file loaded in the main timeline
the name of the text file is loaded from the XML. If i trace the names that are taken from the xml they are exactly as they should be and if i hardcode them in it works fine, but it does not work if i try and dynamically assign the name of textfile to the text box…can anyone help?

I have put the code below


[color=#000000]
on(release){
//this is just to show that hardcoding works
_root.info.text=airTxt.air
}
on (rollOver) {
menu_xml = new XML();
menu_xml.ignoreWhite = true;
menu_xml.load("testmenu.xml");
menu_xml.onLoad = function(ok) {
// create main menu after successful loading of XML
if (ok) {
processXml(menu_xml)
trace("xml loaded")
} else {
trace("xml Not loaded")
}
};
 
function processXml(xmlDoc_xml) {
trace(xmlDoc_xml.firstChild)
trace(xmlDoc_xml.firstChild.attributes.toolTip)
trace(xmlDoc_xml.firstChild.attributes.ttVar)
tName=xmlDoc_xml.firstChild.attributes.toolTip
tTitle=xmlDoc_xml.firstChild.attributes.ttVar
trace(tName+ " "+tTitle)
//tName=airTxt and tTitle=air
_root.info.text=tName.tTitle
//but if i do this it works
_root.info.text=airTxt.air

[/color]with this code on the main timeline


airTxt= new LoadVars()
airTxt.load("airTxt.txt")
airTxt.onLoad=function(ok){
if(ok){
trace("loaded")
}else{
trace("not loaded")
}
}