# Help: Problem with 'this' in reading text file

**URL:** <https://forum.kirupa.com/t/help-problem-with-this-in-reading-text-file/302739>\
**Category:** flash\
**Created:** [January 6, 2010, 7:07pm UTC](https://forum.kirupa.com/t/help-problem-with-this-in-reading-text-file/302739 "2010-01-06T19:07:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zeembry](https://avatars.discourse-cdn.com/v4/letter/z/c57346/32.png) [@zeembry](https://forum.kirupa.com/u/zeembry)\
**Post date:** [January 6, 2010, 7:07pm UTC](https://forum.kirupa.com/t/help-problem-with-this-in-reading-text-file/302739/1 "2010-01-06T19:07:33Z")

</div>

myData = new LoadVars();

myData.load(“data.txt”);

myData.onLoad = function()  
{  
n = random(myData.tot);

```
temp = "myData.q" + String(n);

myQuote.text = eval(temp); // it works

myQuote.text = this[temp] // it doesn't works, why ?

// is it because the DOT ? How to solve this problem using this

```

};

random\_btn.onRelease=function()  
{  
myData.onLoad();  
}
