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.
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?