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();
}