Simple (?) actionscript question

Hi

I want to access pArray outside the onData()-function:
*
imgArray = new pArray();

lv = new LoadVars();
lv.load(“filearray.php”);

lv.onData = function(text){

 pArray = text.split("&");
 _root.textArea1.text = "pArray:"+pArray;

}

imgArray = pArray;
_root.textArea2.text = “imgArray:”+imgArray;
*

I tried to create an imgArray outside and use that one, but it didn’t work. What should I do to be able to access the pArray outside the function? The textareas are just for showing what the arrays contain, wich will be dynamicly loaded images, using a PHP script. I’m trying to create this gallery function.

regards

Henrik, sweden