I’ve loaded a text file with my variables in it, and am trying to make buttons change the content of text box to one of my several variables… basicly each button corresponds to a variable that should display a text string.
Can’t get the button to load the variable, when clicked the box displays “undefined”.
Any help would be great.
**All I really need is a code chunk for the variable loading (which I have) and for the individual button (which is where my problem lies)
really not sure what to tell you on that one … i’m confused as to what this.main refers to. is that the name of a variable or what?
i’ve had problems in the past setting this.htmlText you may try using this.text first just to get it to load then worry about formatting it.
without seeing the rest of the file and only looking at this script i’d say the problem is that you’ve loaded vars into a variable called loadMain then you said the text should = main … two different variable names, unless you have that specified as a variable somewhere in the text file you’ve loaded