Undefined variable out side of function HELP!

Hi, im pulling in an xml document. Ive pushed all the nodes in to arrays and have successfully performed calculations on some variables. Now, i have the arrays defined as _.global arrays, but when i try and trace them outside the function they are undefined. They trace fine inside the function.

Is ther anyway of accessing these variables outside the function???

this is my file, as you can see at the botttom i am trying to trace the variables but it wont work???

xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("stocks.xml");
_global.indicename = new Array();
_global.currentprice = new Array();
_global.valuechange = new Array();
_global.newLocation = new Array();
function loadXML(loaded) {
 if (loaded) {
  for (i=0; i<3; i++) {
   _global.indicename.push(this.firstChild.childNodes*.childNodes[0].firstChild.nodeValue);
   _global.currentprice.push(this.firstChild.childNodes*.childNodes[1].firstChild.nodeValue);
   _global.valuechange.push(this.firstChild.childNodes*.childNodes[2].firstChild.nodeValue);
  }
  for (i=0; i<_global.indicename.length; i++) {
   trace("Symbol = "+_global.indicename*);
   trace("Current Price = "+_global.currentprice*);
   trace("Value Change = "+_global.valuechange*);
   _global.mySubstring = _global.valuechange*.substr(0, 1);
   if (_global.mySubstring == "+") {
    _global.origprice = parseFloat(_global.currentprice*)-parseFloat(_global.valuechange*);
    trace("Original Price = "+origprice);
    //Following finds percentage change
    _global.percentage = parseFloat(_global.valuechange*)/parseFloat(_global.origprice)*100;
    trace("Percentage Change = "+percentage);
    _global.newLocation* = _global.percentage*100;
    trace("Move To >"+newLocation*);
   }
   if (_global.mySubstring == "-") {
    _global.origprice = parseFloat(_global.currentprice*)-parseFloat(_global.valuechange*);
    trace("Original Price = "+origprice);
    //Following finds percentage change
    _global.percentage = parseFloat(_global.valuechange*)/parseFloat(_global.origprice)*100;
    trace("Percentage Change = "+percentage);
    _global.newLocation* = _global.percentage*100;
    trace("Move To >"+newLocation*);
   }
   if (_global.mySubstring == "0") {
    _global.origprice = parseFloat(_global.currentprice*)-parseFloat(_global.valuechange*);
    trace("Original Price = "+origprice);
    //Following finds percentage change
    _global.percentage = parseFloat(_global.valuechange*)/parseFloat(_global.origprice)*100;
    trace("Percentage Change = "+percentage);
    _global.newLocation* = _global.percentage*100;
    trace("Move To >"+newLocation*);
   }
  }
 }
}
trace(indicename[0]);
trace(currentprice[0]);
trace(newLocation[0]);

this is my xml file,

<?xml version="1.0" encoding="utf-8" ?> 
- <indices>- <indice>  <BVSP>BVSP</BVSP>   <indiceprice>60532.40</indiceprice>   <valuechange>+80.30</valuechange>   </indice>- <indice>  <MXX>MXX</MXX>   <indiceprice>30647.39</indiceprice>   <valuechange>+557.49</valuechange>   </indice>- <indice>  <MERV>MERV</MERV>   <indiceprice>2085.20</indiceprice>   <valuechange>-4.51</valuechange>   </indice>  </indices>