# Why doesn't LoadVars() work?

**URL:** <https://forum.kirupa.com/t/why-doesnt-loadvars-work/97436>\
**Category:** Uncategorized\
**Created:** [December 22, 2003, 1:52pm UTC](https://forum.kirupa.com/t/why-doesnt-loadvars-work/97436 "2003-12-22T13:52:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JaFFe](https://avatars.discourse-cdn.com/v4/letter/j/7cd45c/32.png) [@JaFFe](https://forum.kirupa.com/u/JaFFe)\
**Post date:** [December 22, 2003, 1:52pm UTC](https://forum.kirupa.com/t/why-doesnt-loadvars-work/97436/1 "2003-12-22T13:52:10Z")

</div>

I have a txt file in the folder “info” containing:  
&load=10

## In the fla file i have this code in the first frame:

folder = “info/”;

infoVars = new LoadVars();  
infoVars.load(folder+“info.txt”);

trace(infoVars.load);

* * *

When i run my movie, infoVars.load returns  
undefined instead of 10.

Can someone help me???
