# Loadvar and scope variable problem

**URL:** https://forum.kirupa.com/t/loadvar-and-scope-variable-problem/56189
**Category:** Uncategorized
**Created:** [July 1, 2004, 12:39pm UTC](https://forum.kirupa.com/t/loadvar-and-scope-variable-problem/56189 "2004-07-01T12:39:32Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![denismatt](https://avatars.discourse-cdn.com/v4/letter/d/439d5e/32.png) [@denismatt](https://forum.kirupa.com/u/denismatt)
#### Post date: [July 1, 2004, 12:39pm UTC](https://forum.kirupa.com/t/loadvar-and-scope-variable-problem/56189/1 "2004-07-01T12:39:32Z")

</div>

I add this actionscript code on the first frame.  
Variables are loaded but . The question is below the code.

var myArray1=new Array()  
var myArray2=new Array()  
var myArray3=new Array()

function showContent() {

for(var i=0;i\<5i++){  
var uu=Number(this[“n”]);  
myArrray1\*=this[“nome” + i];  
myArrray2\*=this[“email” + i];  
myArrray3\*= this[“comment”+ i];   
}  
var c = new LoadVars();  
c.onLoad = showContent;  
c.load(“[http://www.pagina15.it/public/file.txt](http://www.pagina15.it/public/file.txt)”);

\*\*\*\* not working \*\*\*\*  
\_root.result.text = myArray1[0]

myArray seems set to null or out of scope…  
Where I am wrong??

Thanks in advance.denis,
