# Flash, txt file, problems

**URL:** <https://forum.kirupa.com/t/flash-txt-file-problems/226934>\
**Category:** Uncategorized\
**Created:** [May 25, 2007, 4:31am UTC](https://forum.kirupa.com/t/flash-txt-file-problems/226934 "2007-05-25T04:31:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![npgames](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/npgames/32/2914_2.png) [@npgames](https://forum.kirupa.com/u/npgames)\
**Post date:** [May 25, 2007, 4:31am UTC](https://forum.kirupa.com/t/flash-txt-file-problems/226934/1 "2007-05-25T04:31:15Z")

</div>

im starting to understand how data is brought into flash, and im making progress on my website, but i just hit a problem that i cant beat.Ⓜ

```auto
ranQuote = new LoadVars();
ranQuote.onLoad = function(success) {
 if (success) {
     ran = this["quote"+1]; 
  [COLOR=red]ran2 = this["quote"+2];[/COLOR]
     a_btn.name.text = ran;
 }
}
ranQuote.load("Quotes.txt");
// quote 1 end---------------------------------------------
[COLOR=red]a_btn.onRelease = function(){
description.text = ran2
}[/COLOR][COLOR=black][/[/COLOR]CODE]
 
what this code does, is load a text file that has different "quotes" with their own data. ran is the first thing of data to load, it works perfectly because i only use it when the flash loads. the ran2 doesnt work with the button onrelease,i think there must be a problem where the red text is, because when i press the button it does nothing. is there a step i missed, or a quick workaround to this problem?
```
