# loadVars Problem

**URL:** https://forum.kirupa.com/t/loadvars-problem/275353
**Category:** Uncategorized
**Created:** [November 12, 2008, 8:38pm UTC](https://forum.kirupa.com/t/loadvars-problem/275353 "2008-11-12T20:38:45Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![lacohido](https://avatars.discourse-cdn.com/v4/letter/l/e8c25b/32.png) [@lacohido](https://forum.kirupa.com/u/lacohido)
#### Post date: [November 12, 2008, 8:38pm UTC](https://forum.kirupa.com/t/loadvars-problem/275353/1 "2008-11-12T20:38:45Z")

</div>

Hello again-  
Im trying to load a variable from a text file with loadVars  
The txt file has this -

```auto
num = 10

```

The flash looks like this

```auto
var load_lv = new LoadVars();
load_lv.load("tmbnum.txt");
load_lv.onLoad = loadTextVariables;
function loadTextVariables(success){
	if(success){ 
		trace(this.num);
	} 
}
thumbNum = num;
trace(thumbNum);

```

The “trace(this.num)” shows the number 10 like it should.  
The “trace(thumbNum)” comes back undefined (should show 10).

What am I doing wrong?
